| Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
|
| index 6988a3891e6c5dec0de084b053cfb2408f0328c0..7d59b9205e85a923f31507f2a444979a9ee8dbb6 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
|
| @@ -565,6 +565,30 @@
|
| */
|
| public boolean isSafeBrowsingManaged() {
|
| return nativeGetSafeBrowsingManaged();
|
| + }
|
| +
|
| + /**
|
| + * @return whether there is a user set value for kNetworkPredictionEnabled. This should only be
|
| + * used for preference migration.
|
| + */
|
| + public boolean networkPredictionEnabledHasUserSetting() {
|
| + return nativeNetworkPredictionEnabledHasUserSetting();
|
| + }
|
| +
|
| + /**
|
| + * @return whether there is a user set value for kNetworkPredictionOptions. This should only be
|
| + * used for preference migration.
|
| + */
|
| + public boolean networkPredictionOptionsHasUserSetting() {
|
| + return nativeNetworkPredictionOptionsHasUserSetting();
|
| + }
|
| +
|
| + /**
|
| + * @return the user set value for kNetworkPredictionEnabled. This should only be used for
|
| + * preference migration.
|
| + */
|
| + public boolean getNetworkPredictionEnabledUserPrefValue() {
|
| + return nativeGetNetworkPredictionEnabledUserPrefValue();
|
| }
|
|
|
| /**
|
| @@ -1020,6 +1044,9 @@
|
| private native void nativeSetSafeBrowsingEnabled(boolean enabled);
|
| private native boolean nativeGetSafeBrowsingManaged();
|
| private native boolean nativeGetNetworkPredictionManaged();
|
| + private native boolean nativeNetworkPredictionEnabledHasUserSetting();
|
| + private native boolean nativeNetworkPredictionOptionsHasUserSetting();
|
| + private native boolean nativeGetNetworkPredictionEnabledUserPrefValue();
|
| private native int nativeGetNetworkPredictionOptions();
|
| private native void nativeSetNetworkPredictionOptions(int option);
|
| private native void nativeSetResolveNavigationErrorEnabled(boolean enabled);
|
|
|