Chromium Code Reviews| 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 034c90e11863ce54a83f48000ae84aa5d7ab6ca9..6846fc717d884ed42202ac0924b440a85fa44957 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 |
| @@ -518,38 +518,38 @@ public final class PrefServiceBridge { |
| * @return whether there is a user set value for kNetworkPredictionEnabled. This should only be |
| * used for preference migration. |
| */ |
| - public boolean networkPredictionEnabledHasUserSetting() { |
| - return nativeNetworkPredictionEnabledHasUserSetting(); |
| + public boolean obsoleteNetworkPredictionEnabledHasUserSetting() { |
| + return nativeObsoleteNetworkPredictionEnabledHasUserSetting(); |
| } |
| /** |
| * @return whether there is a user set value for kNetworkPredictionOptions. This should only be |
| * used for preference migration. |
| */ |
| - public boolean networkPredictionOptionsHasUserSetting() { |
| - return nativeNetworkPredictionOptionsHasUserSetting(); |
| + public boolean obsoleteNetworkPredictionOptionsHasUserSetting() { |
|
Yusuf
2016/02/19 18:28:28
Should we include a bit more about the "obsolete"
newt (away)
2016/02/19 21:41:54
Done.
|
| + return nativeObsoleteNetworkPredictionOptionsHasUserSetting(); |
| } |
| /** |
| * @return the user set value for kNetworkPredictionEnabled. This should only be used for |
| * preference migration. |
| */ |
| - public boolean getNetworkPredictionEnabledUserPrefValue() { |
| - return nativeGetNetworkPredictionEnabledUserPrefValue(); |
| + public boolean obsoleteGetNetworkPredictionEnabledUserPrefValue() { |
| + return nativeObsoleteGetNetworkPredictionEnabledUserPrefValue(); |
| } |
| /** |
| * @return Network predictions preference. |
| */ |
| - public NetworkPredictionOptions getNetworkPredictionOptions() { |
| - return NetworkPredictionOptions.intToEnum(nativeGetNetworkPredictionOptions()); |
| + public boolean getNetworkPredictionEnabled() { |
| + return nativeGetNetworkPredictionEnabled(); |
| } |
| /** |
| * Sets network predictions preference. |
| */ |
| - public void setNetworkPredictionOptions(NetworkPredictionOptions option) { |
| - nativeSetNetworkPredictionOptions(option.enumToInt()); |
| + public void setNetworkPredictionEnabled(boolean enabled) { |
| + nativeSetNetworkPredictionEnabled(enabled); |
| } |
| /** |
| @@ -564,8 +564,8 @@ public final class PrefServiceBridge { |
| * connection type. |
| * @return Whether network predictions are allowed. |
| */ |
| - public boolean canPredictNetworkActions() { |
| - return nativeCanPredictNetworkActions(); |
| + public boolean canPrefetchAndPrerender() { |
| + return nativeCanPrefetchAndPrerender(); |
| } |
| /** |
| @@ -1016,7 +1016,7 @@ public final class PrefServiceBridge { |
| private native void nativeSetPasswordEchoEnabled(boolean enabled); |
| private native void nativeSetPopupException(String pattern, int setting); |
| private native void nativeSetCrashReporting(boolean reporting); |
| - private native boolean nativeCanPredictNetworkActions(); |
| + private native boolean nativeCanPrefetchAndPrerender(); |
| private native AboutVersionStrings nativeGetAboutVersionStrings(); |
| private native void nativeSetContextualSearchPreference(String preference); |
| private native String nativeGetContextualSearchPreference(); |
| @@ -1031,11 +1031,11 @@ public final class PrefServiceBridge { |
| 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 boolean nativeObsoleteNetworkPredictionEnabledHasUserSetting(); |
| + private native boolean nativeObsoleteNetworkPredictionOptionsHasUserSetting(); |
| + private native boolean nativeObsoleteGetNetworkPredictionEnabledUserPrefValue(); |
| + private native boolean nativeGetNetworkPredictionEnabled(); |
| + private native void nativeSetNetworkPredictionEnabled(boolean enabled); |
| private native void nativeSetResolveNavigationErrorEnabled(boolean enabled); |
| private native void nativeSetEulaAccepted(); |
| private native void nativeResetAcceptLanguages(String defaultLocale); |