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

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: whitespace 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..f115af32b57b361d4b97c5a9f355b10d76581adc 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::GetAvatarButtonDisplayNameForProfile(browser_->profile()));
base::scoped_nsobject<NSAttributedString> attributedTitle(
[[NSAttributedString alloc]

Powered by Google App Engine
This is Rietveld 408576698