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

Unified Diff: chrome/browser/ui/app_list/app_list_service_mac.mm

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework Created 7 years, 5 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/ui/app_list/app_list_service_mac.mm
diff --git a/chrome/browser/ui/app_list/app_list_service_mac.mm b/chrome/browser/ui/app_list/app_list_service_mac.mm
index bf644604e62c37340c36ce92898c5ca73214da6a..20597266d3deb3a99eebfc94d56567b55601252c 100644
--- a/chrome/browser/ui/app_list/app_list_service_mac.mm
+++ b/chrome/browser/ui/app_list/app_list_service_mac.mm
@@ -18,6 +18,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_system.h"
+#include "chrome/browser/profiles/avatar_menu_model.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
#include "chrome/browser/ui/app_list/app_list_service.h"
@@ -279,7 +280,13 @@ void AppListServiceMac::CreateAppList(Profile* requested_profile) {
SetProfile(requested_profile);
scoped_ptr<app_list::AppListViewDelegate> delegate(
- new AppListViewDelegate(new AppListControllerDelegateCocoa(), profile()));
+ new AppListViewDelegate(
+ new AppListControllerDelegateCocoa(),
+ profile(),
+ new AvatarMenuModel(
+ &g_browser_process->profile_manager()->GetProfileInfoCache(),
+ NULL,
+ NULL)));
window_controller_.reset([[AppListWindowController alloc] init]);
[[window_controller_ appListViewController] setDelegate:delegate.Pass()];
}

Powered by Google App Engine
This is Rietveld 408576698