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

Side by Side 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: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/user_manager_impl.h" 5 #include "chrome/browser/chromeos/login/user_manager_impl.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 users_vector->push_back(email); 142 users_vector->push_back(email);
143 } 143 }
144 users_set->erase(logged_in_user); 144 users_set->erase(logged_in_user);
145 return logged_in_user_on_list; 145 return logged_in_user_on_list;
146 } 146 }
147 147
148 } // namespace 148 } // namespace
149 149
150 // static 150 // static
151 void UserManager::RegisterPrefs(PrefServiceSimple* local_state) { 151 void UserManager::RegisterPrefs(PrefRegistrarSimple* local_state) {
152 local_state->RegisterListPref(kRegularUsers); 152 local_state->RegisterListPref(kRegularUsers);
153 local_state->RegisterListPref(kPublicAccounts); 153 local_state->RegisterListPref(kPublicAccounts);
154 local_state->RegisterStringPref(kPublicAccountPendingDataRemoval, ""); 154 local_state->RegisterStringPref(kPublicAccountPendingDataRemoval, "");
155 local_state->RegisterDictionaryPref(kUserOAuthTokenStatus); 155 local_state->RegisterDictionaryPref(kUserOAuthTokenStatus);
156 local_state->RegisterDictionaryPref(kUserDisplayName); 156 local_state->RegisterDictionaryPref(kUserDisplayName);
157 local_state->RegisterDictionaryPref(kUserDisplayEmail); 157 local_state->RegisterDictionaryPref(kUserDisplayEmail);
158 SessionLengthLimiter::RegisterPrefs(local_state); 158 SessionLengthLimiter::RegisterPrefs(local_state);
159 } 159 }
160 160
161 UserManagerImpl::UserManagerImpl() 161 UserManagerImpl::UserManagerImpl()
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 device_local_account_policy_service_->GetBrokerForAccount(username); 951 device_local_account_policy_service_->GetBrokerForAccount(username);
952 if (broker) 952 if (broker)
953 display_name = broker->GetDisplayName(); 953 display_name = broker->GetDisplayName();
954 } 954 }
955 955
956 // Set or clear the display name. 956 // Set or clear the display name.
957 SaveUserDisplayName(username, UTF8ToUTF16(display_name)); 957 SaveUserDisplayName(username, UTF8ToUTF16(display_name));
958 } 958 }
959 959
960 } // namespace chromeos 960 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698