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

Unified Diff: chrome/browser/ui/cocoa/browser/avatar_button_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/avatar_button_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser/avatar_button_controller.mm b/chrome/browser/ui/cocoa/browser/avatar_button_controller.mm
index db3ee1fce0da578e9af9cad9d864c1dea6221975..1fbe4fe2f4d5e5d6e3c90fc08a66a854a580fd28 100644
--- a/chrome/browser/ui/cocoa/browser/avatar_button_controller.mm
+++ b/chrome/browser/ui/cocoa/browser/avatar_button_controller.mm
@@ -139,7 +139,7 @@ NSImage* GetImageFromResourceID(int resourceId) {
[paragraphStyle setAlignment:NSLeftTextAlignment];
NSString* buttonTitle = base::SysUTF16ToNSString(
- profiles::GetActiveProfileDisplayName(browser_));
+ profiles::GetAvatarNameForProfile(browser_->profile()));
base::scoped_nsobject<NSAttributedString> attributedTitle(
[[NSAttributedString alloc]
« no previous file with comments | « chrome/browser/profiles/profiles_state.cc ('k') | chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698