Loading services/core/java/com/android/server/webkit/WebViewUpdateServiceImpl.java +7 −6 Original line number Diff line number Diff line Loading @@ -163,6 +163,7 @@ class WebViewUpdateServiceImpl { } void prepareWebViewInSystemServer() { mSystemInterface.notifyZygote(isMultiProcessEnabled()); try { synchronized (mLock) { mCurrentWebViewPackage = findPreferredWebViewPackage(); Loading Loading @@ -199,12 +200,6 @@ class WebViewUpdateServiceImpl { Slog.e(TAG, "No valid provider and no fallback available."); } } boolean multiProcessEnabled = isMultiProcessEnabled(); mSystemInterface.notifyZygote(multiProcessEnabled); if (multiProcessEnabled) { AsyncTask.THREAD_POOL_EXECUTOR.execute(this::startZygoteWhenReady); } } private void startZygoteWhenReady() { Loading Loading @@ -358,6 +353,12 @@ class WebViewUpdateServiceImpl { mWebViewPackageDirty = true; } } // Once we've notified the system that the provider has changed and started RELRO creation, // try to restart the zygote so that it will be ready when apps use it. if (isMultiProcessEnabled()) { AsyncTask.THREAD_POOL_EXECUTOR.execute(this::startZygoteWhenReady); } } /** Loading Loading
services/core/java/com/android/server/webkit/WebViewUpdateServiceImpl.java +7 −6 Original line number Diff line number Diff line Loading @@ -163,6 +163,7 @@ class WebViewUpdateServiceImpl { } void prepareWebViewInSystemServer() { mSystemInterface.notifyZygote(isMultiProcessEnabled()); try { synchronized (mLock) { mCurrentWebViewPackage = findPreferredWebViewPackage(); Loading Loading @@ -199,12 +200,6 @@ class WebViewUpdateServiceImpl { Slog.e(TAG, "No valid provider and no fallback available."); } } boolean multiProcessEnabled = isMultiProcessEnabled(); mSystemInterface.notifyZygote(multiProcessEnabled); if (multiProcessEnabled) { AsyncTask.THREAD_POOL_EXECUTOR.execute(this::startZygoteWhenReady); } } private void startZygoteWhenReady() { Loading Loading @@ -358,6 +353,12 @@ class WebViewUpdateServiceImpl { mWebViewPackageDirty = true; } } // Once we've notified the system that the provider has changed and started RELRO creation, // try to restart the zygote so that it will be ready when apps use it. if (isMultiProcessEnabled()) { AsyncTask.THREAD_POOL_EXECUTOR.execute(this::startZygoteWhenReady); } } /** Loading