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..a7a02395fafaa07e35fb05321b37c96a09e36fdc 100644 |
--- a/chrome/browser/ui/app_list/app_list_shower_views.cc |
+++ b/chrome/browser/ui/app_list/app_list_shower_views.cc |
@@ -101,8 +101,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()); |
+ AppListViewDelegate* view_delegate = |
+ new AppListViewDelegate(delegate_->GetControllerDelegateForCreate()); |
+ view_delegate->SetProfile(profile_); |
app_list::AppListView* view = new app_list::AppListView(view_delegate); |
gfx::Point cursor = gfx::Screen::GetNativeScreen()->GetCursorScreenPoint(); |
view->InitAsBubbleAtFixedLocation(NULL, |