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 b1a0b3d25592847c9b059508fd40fc6053efa8b0..a2b06af7ab96bec7bcbe22e7e440570dbe2eefbb 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 |
@@ -95,10 +95,12 @@ void BrowserNonClientFrameView::UpdateAvatarInfo() { |
ProfileInfoCache& cache = |
g_browser_process->profile_manager()->GetProfileInfoCache(); |
Profile* profile = browser_view_->browser()->profile(); |
- size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); |
- if (index == std::string::npos) |
+ |
+ ProfileInfoEntry entry; |
+ if (!cache.GetInfoForProfile(profile->GetPath(), &entry)) |
return; |
- text = cache.GetNameOfProfileAtIndex(index); |
+ |
+ text = entry.GetDisplayName(); |
AvatarMenu::GetImageForMenuButton(browser_view_->browser()->profile(), |
&avatar, |