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

Unified Diff: chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm

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
Index: chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
index ab865eb811770d2f571ed88a261753d976a776bd..0359b92673ad0e39c0e7c2089a8e65abcbbca407 100644
--- a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
@@ -774,7 +774,8 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
availableTextWidth,
kProfileButtonHeight)
profile:browser_->profile()
- profileName:base::SysUTF16ToNSString(item.name)
+ profileName:base::SysUTF16ToNSString(
+ profiles::GetAvatarNameForProfile(browser_->profile()))
editingAllowed:!isGuestSession_]);
[container addSubview:profileName];

Powered by Google App Engine
This is Rietveld 408576698