| Index: chrome/browser/ui/views/frame/browser_view.cc
|
| diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
|
| index afe40858719fa18d26d66ced53f808ca6d023d7c..5ab30b6a30399636fe83f1fd1fa6c1a859357b3d 100644
|
| --- a/chrome/browser/ui/views/frame/browser_view.cc
|
| +++ b/chrome/browser/ui/views/frame/browser_view.cc
|
| @@ -610,10 +610,10 @@ bool BrowserView::ShouldShowAvatar() const {
|
| return false;
|
| ProfileInfoCache& cache =
|
| g_browser_process->profile_manager()->GetProfileInfoCache();
|
| - if (cache.GetIndexOfProfileWithPath(browser_->profile()->GetPath()) ==
|
| - std::string::npos) {
|
| +
|
| + ProfileInfoEntry entry;
|
| + if (!cache.GetInfoForProfile(browser_->profile()->GetPath(), &entry))
|
| return false;
|
| - }
|
|
|
| return AvatarMenu::ShouldShowAvatarMenu();
|
| }
|
|
|