Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aba1846f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Only start WebView zygote if multiprocess enabled." into qt-dev

parents 2f956b53 1bc38eda
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -81,9 +81,12 @@ public class WebViewUpdateServiceImpl {
    void prepareWebViewInSystemServer() {
        migrateFallbackStateOnBoot();
        mWebViewUpdater.prepareWebViewInSystemServer();
        mSystemInterface.notifyZygote(isMultiProcessEnabled());
        boolean multiProcessEnabled = isMultiProcessEnabled();
        mSystemInterface.notifyZygote(multiProcessEnabled);
        if (multiProcessEnabled) {
            AsyncTask.THREAD_POOL_EXECUTOR.execute(this::startZygoteWhenReady);
        }
    }

    void startZygoteWhenReady() {
        // Wait on a background thread for RELRO creation to be done. We ignore the return value