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

Commit 2536cc68 authored by Richard Coles's avatar Richard Coles Committed by Android (Google) Code Review
Browse files

Merge "Expose isMultiProcessEnabled via WebViewDelegate."

parents 65e8f0ad b26428b3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50714,6 +50714,7 @@ package android.webkit {
    method public java.lang.String getErrorString(android.content.Context, int);
    method public int getPackageId(android.content.res.Resources, java.lang.String);
    method public void invokeDrawGlFunctor(android.view.View, long, boolean);
    method public boolean isMultiProcessEnabled();
    method public boolean isTraceTagEnabled();
    method public void setOnTraceEnabledChangeListener(android.webkit.WebViewDelegate.OnTraceEnabledChangeListener);
  }
+12 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.os.RemoteException;
import android.os.SystemProperties;
import android.os.Trace;
import android.util.SparseArray;
@@ -206,4 +207,15 @@ public final class WebViewDelegate {
                    appInfo.getBaseResourcePath(), newAssetPath);
        }
    }

    /**
     * Returns whether WebView should run in multiprocess mode.
     */
    public boolean isMultiProcessEnabled() {
        try {
            return WebViewFactory.getUpdateService().isMultiProcessEnabled();
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
    }
}