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

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: 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 64978fc40fb2159cfda36ee3c7b47367cfc62a3d..398cc31b85fa38af0d5ab92eb26ed6bc1e5e732a 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*/,
lwchkg 2016/02/14 17:07:18 Currently only the interface of AvatarMenu refacto
lwchkg 2016/02/14 17:22:37 I've found another 5 Mac-only files calling this c
AvatarMenuObserver* observer,
Browser* browser)
- : profile_list_(ProfileList::Create(profile_cache)),
+ : profile_list_(ProfileList::Create(
+ &g_browser_process->profile_manager()->GetProfileInfoCache())),
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