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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 144983002: Fixed chrome://settings/accounts availability for MP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index bea6effd1694f797bdce609619d2ba4e515977f3..782dee8ec65bf82728e967540c8fd2c6d86cded8 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -1198,7 +1198,7 @@ void ProfileImpl::ChangeAppLocale(
GetPrefs()->SetString(prefs::kApplicationLocale, new_locale);
local_state->SetString(prefs::kApplicationLocale, new_locale);
- if (chromeos::UserManager::Get()->IsCurrentUserOwner())
+ if (chromeos::ProfileHelper::IsProfileOwner(this))
local_state->SetString(prefs::kOwnerLocale, new_locale);
}

Powered by Google App Engine
This is Rietveld 408576698