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

Unified Diff: chrome/browser/ui/app_list/app_list_shower_views.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
Index: chrome/browser/ui/app_list/app_list_shower_views.cc
diff --git a/chrome/browser/ui/app_list/app_list_shower_views.cc b/chrome/browser/ui/app_list/app_list_shower_views.cc
index 33dfa30e3be8ee7dd36fd9bbe690d039157bdc22..90ed38fe9ce0eed380688059fad6b1b4e31914de 100644
--- a/chrome/browser/ui/app_list/app_list_shower_views.cc
+++ b/chrome/browser/ui/app_list/app_list_shower_views.cc
@@ -99,11 +99,9 @@ bool AppListShower::HasView() const {
}
app_list::AppListView* AppListShower::MakeViewForCurrentProfile() {
- // The view delegate will be owned by the app list view. The app list view
- // manages its own lifetime.
- AppListViewDelegate* view_delegate = new AppListViewDelegate(
- profile_, delegate_->GetControllerDelegateForCreate());
- app_list::AppListView* view = new app_list::AppListView(view_delegate);
+ // The app list view manages its own lifetime.
+ app_list::AppListView* view =
+ new app_list::AppListView(delegate_->GetViewDelegateForCreate());
gfx::Point cursor = gfx::Screen::GetNativeScreen()->GetCursorScreenPoint();
view->InitAsBubbleAtFixedLocation(NULL,
0,
« no previous file with comments | « chrome/browser/ui/app_list/app_list_shower_delegate.h ('k') | chrome/browser/ui/app_list/app_list_shower_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698