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

Unified Diff: chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc

Issue 375413002: Replace chromeos::UserManager::Get() with chromeos::GetUserManager(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 5 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/ui/webui/options/chromeos/accounts_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc
index 956b0583c63c114e602a02da4e0c8e82da640c3c..6857960c40f49a0c1eed47c4408f8d91e4333f0a 100644
--- a/chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc
@@ -115,7 +115,7 @@ void AccountsOptionsHandler::HandleUnwhitelistUser(
base::StringValue canonical_email(gaia::CanonicalizeEmail(email));
CrosSettings::Get()->RemoveFromList(kAccountsPrefUsers, &canonical_email);
- UserManager::Get()->RemoveUser(email, NULL);
+ GetUserManager()->RemoveUser(email, NULL);
}
void AccountsOptionsHandler::HandleWhitelistExistingUsers(
@@ -134,7 +134,7 @@ void AccountsOptionsHandler::HandleWhitelistExistingUsers(
else
new_list.reset(new base::ListValue);
- const UserList& users = UserManager::Get()->GetUsers();
+ const UserList& users = GetUserManager()->GetUsers();
for (UserList::const_iterator it = users.begin(); it < users.end(); ++it)
new_list->AppendIfNotPresent(new base::StringValue((*it)->email()));

Powered by Google App Engine
This is Rietveld 408576698