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

Unified Diff: chrome/browser/signin/about_signin_internals_factory.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
Index: chrome/browser/signin/about_signin_internals_factory.cc
diff --git a/chrome/browser/signin/about_signin_internals_factory.cc b/chrome/browser/signin/about_signin_internals_factory.cc
index 5d9b2b191a0d95f7234e77d05062dbf4eb3a67d4..310285725be52d02efe46db2a318370cc5cde1f0 100644
--- a/chrome/browser/signin/about_signin_internals_factory.cc
+++ b/chrome/browser/signin/about_signin_internals_factory.cc
@@ -35,13 +35,14 @@ AboutSigninInternalsFactory* AboutSigninInternalsFactory::GetInstance() {
return Singleton<AboutSigninInternalsFactory>::get();
}
-void AboutSigninInternalsFactory::RegisterUserPrefs(PrefService* user_prefs) {
+void AboutSigninInternalsFactory::RegisterUserPrefs(
+ PrefServiceSyncable* user_prefs) {
// SigninManager information for about:signin-internals.
for (int i = UNTIMED_FIELDS_BEGIN; i < UNTIMED_FIELDS_END; ++i) {
const std::string pref_path = SigninStatusFieldToString(
static_cast<UntimedSigninStatusField>(i));
user_prefs->RegisterStringPref(pref_path.c_str(), "",
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
}
for (int i = TIMED_FIELDS_BEGIN; i < TIMED_FIELDS_END; ++i) {
const std::string value = SigninStatusFieldToString(
@@ -49,9 +50,9 @@ void AboutSigninInternalsFactory::RegisterUserPrefs(PrefService* user_prefs) {
const std::string time = SigninStatusFieldToString(
static_cast<TimedSigninStatusField>(i)) + ".time";
user_prefs->RegisterStringPref(value.c_str(), "",
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
user_prefs->RegisterStringPref(time.c_str(), "",
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
}
// TokenService information for about:signin-internals.
for (size_t i = 0; i < kNumTokenPrefs; i++) {
@@ -60,11 +61,11 @@ void AboutSigninInternalsFactory::RegisterUserPrefs(PrefService* user_prefs) {
const std::string status = pref + ".status";
const std::string time = pref + ".time";
user_prefs->RegisterStringPref(value.c_str(), "",
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
user_prefs->RegisterStringPref(status.c_str(), "",
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
user_prefs->RegisterStringPref(time.c_str(), "",
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
}
}
« no previous file with comments | « chrome/browser/signin/about_signin_internals_factory.h ('k') | chrome/browser/signin/signin_manager_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698