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

Commit afab611a authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Delay starting the webview_zygote until first use." am:...

Merge "Merge "Delay starting the webview_zygote until first use." am: 6d9d717a am: 99440a0a am: 92697692"
parents a2a32b6c ffc4dd72
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -93,13 +93,11 @@ public class WebViewZygote {
        synchronized (sLock) {
            sMultiprocessEnabled = enabled;

            // When toggling between multi-process being on/off, start or stop the
            // zygote. If it is enabled and the zygote is not yet started, launch it.
            // Otherwise, kill it. The name may be null if the package information has
            // not yet been resolved.
            if (enabled) {
                connectToZygoteIfNeededLocked();
            } else {
            // When multi-process is disabled, kill the zygote. When it is enabled,
            // the zygote is not explicitly started here to avoid waiting on the
            // zygote launch at boot. Instead, the zygote will be started when it is
            // first needed in getProcess().
            if (!enabled) {
                stopZygoteLocked();
            }
        }