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

Unified Diff: chrome/browser/chromeos/login/user_manager_impl.cc

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 years, 10 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/chromeos/login/user_manager_impl.cc
diff --git a/chrome/browser/chromeos/login/user_manager_impl.cc b/chrome/browser/chromeos/login/user_manager_impl.cc
index c045f5c7866d2b449e43e6c4a4bc31eebe64afff..28d734ab5f03026941509237155e0407f7a3a1b9 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.cc
+++ b/chrome/browser/chromeos/login/user_manager_impl.cc
@@ -30,6 +30,7 @@
#include "chrome/browser/chromeos/login/wizard_controller.h"
#include "chrome/browser/chromeos/power/session_length_limiter.h"
#include "chrome/browser/policy/browser_policy_connector.h"
+#include "chrome/browser/prefs/pref_registry_simple.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/scoped_user_pref_update.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -158,16 +159,16 @@ bool ParseUserList(const ListValue& users_list,
} // namespace
// static
-void UserManager::RegisterPrefs(PrefServiceSimple* local_state) {
- local_state->RegisterListPref(kRegularUsers);
- local_state->RegisterListPref(kPublicAccounts);
- local_state->RegisterListPref(kLocallyManagedUsersFirstRun);
- local_state->RegisterIntegerPref(kLocallyManagedUsersNextId, 0);
- local_state->RegisterStringPref(kPublicAccountPendingDataRemoval, "");
- local_state->RegisterDictionaryPref(kUserOAuthTokenStatus);
- local_state->RegisterDictionaryPref(kUserDisplayName);
- local_state->RegisterDictionaryPref(kUserDisplayEmail);
- SessionLengthLimiter::RegisterPrefs(local_state);
+void UserManager::RegisterPrefs(PrefRegistrySimple* registry) {
+ registry->RegisterListPref(kRegularUsers);
+ registry->RegisterListPref(kPublicAccounts);
+ registry->RegisterListPref(kLocallyManagedUsersFirstRun);
+ registry->RegisterIntegerPref(kLocallyManagedUsersNextId, 0);
+ registry->RegisterStringPref(kPublicAccountPendingDataRemoval, "");
+ registry->RegisterDictionaryPref(kUserOAuthTokenStatus);
+ registry->RegisterDictionaryPref(kUserDisplayName);
+ registry->RegisterDictionaryPref(kUserDisplayEmail);
+ SessionLengthLimiter::RegisterPrefs(registry);
}
UserManagerImpl::UserManagerImpl()
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.h ('k') | chrome/browser/chromeos/login/user_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698