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

Unified Diff: chrome/browser/signin/signin_manager_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
« no previous file with comments | « chrome/browser/signin/signin_manager_factory.h ('k') | chrome/browser/signin/signin_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_manager_factory.cc
diff --git a/chrome/browser/signin/signin_manager_factory.cc b/chrome/browser/signin/signin_manager_factory.cc
index 228e52cb42eba73a64ad8e2a2fa866d384f69836..dd9a5f275402cede45da47b929e288cd145b59a6 100644
--- a/chrome/browser/signin/signin_manager_factory.cc
+++ b/chrome/browser/signin/signin_manager_factory.cc
@@ -35,25 +35,25 @@ SigninManagerFactory* SigninManagerFactory::GetInstance() {
return Singleton<SigninManagerFactory>::get();
}
-void SigninManagerFactory::RegisterUserPrefs(PrefService* user_prefs) {
+void SigninManagerFactory::RegisterUserPrefs(PrefServiceSyncable* user_prefs) {
user_prefs->RegisterStringPref(prefs::kGoogleServicesLastUsername, "",
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
user_prefs->RegisterStringPref(prefs::kGoogleServicesUsername, "",
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
user_prefs->RegisterBooleanPref(prefs::kAutologinEnabled, true,
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
user_prefs->RegisterBooleanPref(prefs::kReverseAutologinEnabled, true,
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
user_prefs->RegisterListPref(prefs::kReverseAutologinRejectedEmailList,
- new ListValue, PrefService::UNSYNCABLE_PREF);
+ new ListValue,
+ PrefServiceSyncable::UNSYNCABLE_PREF);
user_prefs->RegisterBooleanPref(prefs::kIsGooglePlusUser, false,
- PrefService::UNSYNCABLE_PREF);
+ PrefServiceSyncable::UNSYNCABLE_PREF);
}
// static
-void SigninManagerFactory::RegisterPrefs(PrefService* local_state) {
- local_state->RegisterStringPref(prefs::kGoogleServicesUsernamePattern, "",
- PrefService::UNSYNCABLE_PREF);
+void SigninManagerFactory::RegisterPrefs(PrefServiceSimple* local_state) {
+ local_state->RegisterStringPref(prefs::kGoogleServicesUsernamePattern, "");
}
ProfileKeyedService* SigninManagerFactory::BuildServiceInstanceFor(
« no previous file with comments | « chrome/browser/signin/signin_manager_factory.h ('k') | chrome/browser/signin/signin_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698