Merge "Expose isMultiProcessEnabled via WebViewDelegate."
This commit is contained in:
committed by
Android (Google) Code Review
commit
2536cc6872
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user