Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java

Issue 1505963002: Revert of Remove migrateNetworkPredictionPreferences(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BandwidthType.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BandwidthType.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698