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

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

Issue 55433002: Propagates the search result of start page to the app-list search box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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_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 6995f58468643b0bed4e5c3b74be6c3e24b52d3e..0c1d966651d7585c4fd06ed6dde7523a71e51b80 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
@@ -89,6 +89,10 @@ AppListViewDelegate::AppListViewDelegate(
}
AppListViewDelegate::~AppListViewDelegate() {
+ app_list::StartPageService* service =
+ app_list::StartPageService::Get(profile_);
+ if (service)
+ service->SetAppListModel(NULL);
g_browser_process->
profile_manager()->GetProfileInfoCache().RemoveObserver(this);
}
@@ -159,6 +163,11 @@ void AppListViewDelegate::InitModel(app_list::AppListModel* model) {
model,
controller_.get()));
+ app_list::StartPageService* service =
+ app_list::StartPageService::Get(profile_);
+ if (service)
+ service->SetAppListModel(model_);
+
// Initialize the profile information in the app list menu.
OnProfileChanged();
}

Powered by Google App Engine
This is Rietveld 408576698