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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 294593004: [Win,Linux] New avatar menu: Don't allow supervised users to edit their profile name. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index 5fedd953cc6046e86be0fa3c5d4ad4ad04e28ac3..c3c25bc78643868e9543060a247a68d22b308369 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -972,8 +972,10 @@ views::View* ProfileChooserView::CreateCurrentProfileView(
layout->AddView(current_profile_photo_);
// Profile name, centered.
+ bool editing_allowed = !is_guest && !browser_->profile()->IsManaged();
current_profile_name_ = new EditableProfileName(
- this, profiles::GetAvatarNameForProfile(browser_->profile()), !is_guest);
+ this, profiles::GetAvatarNameForProfile(browser_->profile()),
+ editing_allowed);
layout->StartRow(1, 0);
layout->AddView(current_profile_name_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698