Chromium Code Reviews| 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 9938bf33eeb3c0f59c16d3cd3a492ef27014923a..6139dab07ea17423553dfda4c3e346d47c464caf 100644 |
| --- a/chrome/browser/ui/views/frame/browser_view.cc |
| +++ b/chrome/browser/ui/views/frame/browser_view.cc |
| @@ -32,8 +32,9 @@ |
| #include "chrome/browser/native_window_notification_source.h" |
| #include "chrome/browser/profiles/avatar_menu.h" |
| #include "chrome/browser/profiles/profile.h" |
| +#include "chrome/browser/profiles/profile_attributes_entry.h" |
| +#include "chrome/browser/profiles/profile_attributes_storage.h" |
| #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
| -#include "chrome/browser/profiles/profile_info_cache.h" |
| #include "chrome/browser/profiles/profile_manager.h" |
| #include "chrome/browser/profiles/profile_window.h" |
| #include "chrome/browser/profiles/profiles_state.h" |
| @@ -642,10 +643,9 @@ bool BrowserView::ShouldShowAvatar() const { |
| // Tests may not have a profile manager. |
| if (!g_browser_process->profile_manager()) |
| return false; |
| - ProfileInfoCache& cache = |
| - g_browser_process->profile_manager()->GetProfileInfoCache(); |
| - if (cache.GetIndexOfProfileWithPath(browser_->profile()->GetPath()) == |
| - std::string::npos) { |
| + ProfileAttributesEntry* entry; |
| + if (!g_browser_process->profile_manager()->GetProfileAttributesStorage(). |
| + GetProfileAttributesWithPath(browser_->profile()->GetPath(), &entry)) { |
|
lwchkg
2016/02/14 17:07:18
anthonyvd@ and mlerman@: AFAIK profiles either hav
lwchkg
2016/02/24 18:07:27
Forgot to follow-up my own comment. Oh no!
Anyway,
Mike Lerman
2016/02/24 18:11:36
In line 629 we explicitly don't skip out GuestProf
Mike Lerman
2016/02/24 18:11:37
Well, Guest and System end up coming down to this
lwchkg
2016/02/24 18:43:18
Well... lines 626-637 is for ChromeOS, and lines 6
Mike Lerman
2016/02/24 20:44:22
I think the current condition is exactly what we n
lwchkg
2016/02/26 15:27:30
Finally I've found why the code was there: return
Mike Lerman
2016/02/26 15:47:49
There isn't one currently. It would be easy to imp
lwchkg
2016/02/26 16:47:33
Found it. There's a IsProfileMarkedForDeletion() i
|
| return false; |
| } |