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

Unified Diff: chrome/browser/profiles/avatar_menu.cc

Issue 1701563002: Refactor ProfileInfoCache in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments Created 4 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/profiles/avatar_menu.cc
diff --git a/chrome/browser/profiles/avatar_menu.cc b/chrome/browser/profiles/avatar_menu.cc
index 44ddd789b3987e6503b931e083c0276cbe4d1fb0..3f4ebd27b2597b81679cab0b8ac146880e2b7821 100644
--- a/chrome/browser/profiles/avatar_menu.cc
+++ b/chrome/browser/profiles/avatar_menu.cc
@@ -40,15 +40,17 @@
using content::BrowserThread;
-AvatarMenu::AvatarMenu(ProfileInfoInterface* profile_cache,
+AvatarMenu::AvatarMenu(ProfileAttributesStorage* /*profile_storage*/,
anthonyvd 2016/02/19 15:09:07 Can you file a bug about this follow up refactor s
lwchkg 2016/02/19 16:46:03 As long as there is the word "ProfileInfoCache" in
AvatarMenuObserver* observer,
Browser* browser)
- : profile_list_(ProfileList::Create(profile_cache)),
+ : profile_list_(ProfileList::Create(
+ &g_browser_process->profile_manager()->GetProfileInfoCache())),
Mike Lerman 2016/02/19 15:08:12 Would it be possible to move ProfileList into usin
lwchkg 2016/02/19 16:46:03 Definitely will be soon. Anyway, I don't update t
menu_actions_(AvatarMenuActions::Create()),
#if defined(ENABLE_SUPERVISED_USERS)
supervised_user_observer_(this),
#endif
- profile_info_(profile_cache),
+ profile_info_(
+ &g_browser_process->profile_manager()->GetProfileInfoCache()),
observer_(observer),
browser_(browser) {
DCHECK(profile_info_);

Powered by Google App Engine
This is Rietveld 408576698