Post WebView Zygote connection code to a background thread.
Currently, the act of waiting for the WebView Zygote to start running, and then connecting to it is run in a blocking way from WebViewZygote.onWebViewProviderChanged(). This causes us to block large parts of WebViewUpdateService for a long time whenever we change WebView provider. This CL moves the blocking code onto a background thread to unblock WebViewUpdateService. Bug: 35025131 Test: Ensure changing WebView provider from the WebView Implementation Developer Setting is quick/responsive. Test: Turn off WebView multi-process and ensure the WebView Zygote Service is NOT started. Test: Turn on WebView multi-process and ensure the WebView Zygote Service is started. Change-Id: I0b378a471491d40cbf027568ca317d6c080da4b2
Loading
Please register or sign in to comment