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

Unified Diff: chrome/browser/ui/app_list/app_list_service_impl.h

Issue 508813002: Move ownership of the AppListViewDelegate into the AppListService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 6 years, 3 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
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | chrome/browser/ui/app_list/app_list_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_service_impl.h
diff --git a/chrome/browser/ui/app_list/app_list_service_impl.h b/chrome/browser/ui/app_list/app_list_service_impl.h
index b319819c5891c1bfc52cd21247fe3ab74b9fdc55..5ab49910275d40d39de987d89948f975d0eb16e9 100644
--- a/chrome/browser/ui/app_list/app_list_service_impl.h
+++ b/chrome/browser/ui/app_list/app_list_service_impl.h
@@ -17,6 +17,7 @@
#include "chrome/browser/ui/app_list/app_list_service.h"
#include "chrome/browser/ui/app_list/profile_loader.h"
+class AppListViewDelegate;
class ProfileStore;
namespace base {
@@ -38,6 +39,10 @@ class AppListServiceImpl : public AppListService,
PrefService* local_state,
scoped_ptr<ProfileStore> profile_store);
+ // Lazily create the Chrome AppListViewDelegate and ensure it is set to the
+ // given |profile|.
+ AppListViewDelegate* GetViewDelegate(Profile* profile);
+
void RecordAppListLaunch();
static void RecordAppListAppLaunch();
@@ -90,6 +95,7 @@ class AppListServiceImpl : public AppListService,
base::CommandLine command_line_;
PrefService* local_state_;
scoped_ptr<ProfileLoader> profile_loader_;
+ scoped_ptr<AppListViewDelegate> view_delegate_;
base::WeakPtrFactory<AppListServiceImpl> weak_factory_;
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | chrome/browser/ui/app_list/app_list_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698