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

Unified Diff: chrome/browser/net/prediction_options.h

Issue 421653006: Update "Predict network actions" UI setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move and improve migration routine. Created 6 years, 4 months 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
Index: chrome/browser/net/prediction_options.h
diff --git a/chrome/browser/net/prediction_options.h b/chrome/browser/net/prediction_options.h
index d7114c8778324525305fa31ca0ed8792949e791e..2829409082c96036ea38cfedae9370c681299020 100644
--- a/chrome/browser/net/prediction_options.h
+++ b/chrome/browser/net/prediction_options.h
@@ -30,6 +30,10 @@ enum NetworkPredictionOptions {
void RegisterPredictionOptionsProfilePrefs(
user_prefs::PrefRegistrySyncable* registry);
+// Migrate prefs::kNetworkPredictionEnabled user setting (if exists) to
+// prefs::kNetworkPredictionOptions (if does not have user setting).
+void MigrateNetworkPredictionUserPrefs(PrefService* pref_service);
+
// The following two global functions determine whether predictive network
// actions are enabled, based on preferences and network type.

Powered by Google App Engine
This is Rietveld 408576698