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

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

Issue 9355059: Renaming virtual setters/getters in UserManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: year Created 8 years, 9 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/core_chromeos_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
index d24006231924653dabefbf1e60e9d38149e66a13..baab29da447ad6b06602b03239d1c2ab3741f226 100644
--- a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
@@ -59,8 +59,8 @@ base::Value* CreateSettingsValue(base::Value *value,
// Returns true if |username| is the logged-in owner.
bool IsLoggedInOwner(const std::string& username) {
UserManager* user_manager = UserManager::Get();
- return user_manager->current_user_is_owner() &&
- user_manager->logged_in_user().email() == username;
+ return user_manager->IsCurrentUserOwner() &&
+ user_manager->GetLoggedInUser().email() == username;
}
// Creates a user info dictionary to be stored in the |ListValue| that is
@@ -162,7 +162,7 @@ base::Value* CoreChromeOSOptionsHandler::FetchPref(
return pref_value->DeepCopy();
}
// All other prefs are decorated the same way.
- bool enabled = (UserManager::Get()->current_user_is_owner() ||
+ bool enabled = (UserManager::Get()->IsCurrentUserOwner() ||
!IsSettingOwnerOnly(pref_name));
return CreateSettingsValue(
pref_value->DeepCopy(), // The copy will be owned by the dictionary.

Powered by Google App Engine
This is Rietveld 408576698