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

Unified Diff: chrome/browser/ui/network_profile_bubble.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, use pure builder pattern. Created 8 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
Index: chrome/browser/ui/network_profile_bubble.cc
diff --git a/chrome/browser/ui/network_profile_bubble.cc b/chrome/browser/ui/network_profile_bubble.cc
index 7f1ec3cc7d55d5ba0cf0421ae881db9542971fb3..c9abc347cf52d87676e4467d44b110c9890133d8 100644
--- a/chrome/browser/ui/network_profile_bubble.cc
+++ b/chrome/browser/ui/network_profile_bubble.cc
@@ -155,13 +155,11 @@ void NetworkProfileBubble::SetNotificationShown(bool shown) {
}
// static
-void NetworkProfileBubble::RegisterPrefs(PrefService* prefs) {
- prefs->RegisterIntegerPref(prefs::kNetworkProfileWarningsLeft,
- kMaxWarnings,
- PrefService::UNSYNCABLE_PREF);
- prefs->RegisterInt64Pref(prefs::kNetworkProfileLastWarningTime,
- 0,
- PrefService::UNSYNCABLE_PREF);
+void NetworkProfileBubble::RegisterUserPrefs(PrefServiceSyncable* prefs) {
+ prefs->RegisterIntegerPref(prefs::kNetworkProfileWarningsLeft, kMaxWarnings,
+ PrefServiceSyncable::UNSYNCABLE_PREF);
+ prefs->RegisterInt64Pref(prefs::kNetworkProfileLastWarningTime, 0,
+ PrefServiceSyncable::UNSYNCABLE_PREF);
}
// static

Powered by Google App Engine
This is Rietveld 408576698