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

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

Issue 171523004: Stop using the old-style profile names when using --new-profile-management (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved new tests behind no-android/no-cros ifdef Created 6 years, 10 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 | « chrome/browser/ui/views/new_avatar_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profile_chooser_view.cc b/chrome/browser/ui/views/profile_chooser_view.cc
index efdd4b881d943042ce3be97e0dd4c70d64c6e84e..6444c2344b587bb38ce9d5a9befa094791a2149b 100644
--- a/chrome/browser/ui/views/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profile_chooser_view.cc
@@ -598,9 +598,8 @@ views::View* ProfileChooserView::CreateCurrentProfileView(
current_profile_photo_ =
new EditableProfilePhoto(this, avatar_item.icon, !is_guest);
view->SetBoundsRect(current_profile_photo_->bounds());
- current_profile_name_ =
- new EditableProfileName(this, avatar_item.name, !is_guest);
-
+ current_profile_name_ = new EditableProfileName(
+ this, profiles::GetAvatarNameForProfile(browser_->profile()), !is_guest);
layout->StartRow(1, 0);
layout->AddView(current_profile_photo_, 1, 3);
layout->AddView(current_profile_name_);
@@ -651,8 +650,8 @@ views::View* ProfileChooserView::CreateCurrentProfileEditableView(
current_profile_photo_ =
new EditableProfilePhoto(this, avatar_item.icon, true);
view->SetBoundsRect(current_profile_photo_->bounds());
- current_profile_name_ =
- new EditableProfileName(this, avatar_item.name, true);
+ current_profile_name_ = new EditableProfileName(
+ this, profiles::GetAvatarNameForProfile(browser_->profile()), true);
layout->StartRow(1, 0);
layout->AddView(current_profile_photo_, 1, 3);
« no previous file with comments | « chrome/browser/ui/views/new_avatar_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698