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

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

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 | « chrome/browser/ui/app_list/app_list_view_delegate.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('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_view_delegate.cc
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
index b42e2de7b59e68dfb6561602bd3a716c368c4258..d924ce651cdb37ad7d27bf940bbc86dd0df34146 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
@@ -147,8 +147,7 @@ void GetCustomLauncherPageUrls(content::BrowserContext* browser_context,
} // namespace
-AppListViewDelegate::AppListViewDelegate(Profile* profile,
- AppListControllerDelegate* controller)
+AppListViewDelegate::AppListViewDelegate(AppListControllerDelegate* controller)
: controller_(controller),
profile_(NULL),
model_(NULL),
@@ -181,7 +180,6 @@ AppListViewDelegate::AppListViewDelegate(Profile* profile,
*ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
IDR_APP_LIST_GOOGLE_LOGO_VOICE_SEARCH));
#endif
- SetProfile(profile);
registrar_.Add(this,
chrome::NOTIFICATION_APP_TERMINATING,
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698