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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_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: 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/views/frame/browser_non_client_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
index 24a7753a7a5500d2bd9c824cfa3e88ef1f3fd9c1..3067dd60326bf7cbf4c59b07e7a0b197c58e6a4e 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
@@ -148,7 +148,8 @@ void BrowserNonClientFrameView::UpdateNewStyleAvatarInfo(
if (browser_view_->ShouldShowAvatar()) {
if (!new_avatar_button_) {
base::string16 profile_name =
- profiles::GetActiveProfileDisplayName(browser_view_->browser());
+ profiles::GetAvatarButtonDisplayNameForProfile(
+ browser_view_->browser()->profile());
new_avatar_button_ = new NewAvatarButton(
listener, profile_name, style, browser_view_->browser());
new_avatar_button_->set_id(VIEW_ID_NEW_AVATAR_BUTTON);

Powered by Google App Engine
This is Rietveld 408576698