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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.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/options2/chromeos/core_chromeos_options_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc b/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc
index f2067cdb2431e62cc7b8f1a030834f79bf5e6290..e45969cc5aa325ab9fc8a4609acfd4c706b8ecc9 100644
--- a/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc
@@ -58,8 +58,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
@@ -161,7 +161,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.
« no previous file with comments | « chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698