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

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: Merge to head again, previous had unrelated broken win_rel test. 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
« no previous file with comments | « chrome/browser/ui/network_profile_bubble.h ('k') | chrome/browser/ui/prefs/prefs_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/ui/network_profile_bubble.h ('k') | chrome/browser/ui/prefs/prefs_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698