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

Unified Diff: chrome/browser/ui/webui/chromeos/ui_account_tweaks.cc

Issue 271063002: Reintroduce proper checking for owner profile for the UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/chromeos/ui_account_tweaks.cc
diff --git a/chrome/browser/ui/webui/chromeos/ui_account_tweaks.cc b/chrome/browser/ui/webui/chromeos/ui_account_tweaks.cc
index 32b5922519b48ad276f674cad5c2b8ec10cb6950..03f2f7fa7a628580d92227049afb0d8fe540e19a 100644
--- a/chrome/browser/ui/webui/chromeos/ui_account_tweaks.cc
+++ b/chrome/browser/ui/webui/chromeos/ui_account_tweaks.cc
@@ -26,10 +26,8 @@ void AddAccountUITweaksLocalizedValues(
UserManager::Get()->GetUserDisplayEmail(owner_email);
localized_strings->SetString("ownerUserId", display_email);
- // TODO(pastarmovj): Replace this call with a multi-profile aware one.
- // see http://crbug.com/362430
localized_strings->SetBoolean("currentUserIsOwner",
- UserManager::Get()->IsCurrentUserOwner());
+ ProfileHelper::IsOwnerProfile(profile));
localized_strings->SetBoolean("loggedInAsGuest",
UserManager::Get()->IsLoggedInAsGuest());

Powered by Google App Engine
This is Rietveld 408576698