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

Unified Diff: ui/app_list/views/app_list_main_view.cc

Issue 439703002: Allow app list tiles to show search results in the experimental app list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: ui/app_list/views/app_list_main_view.cc
diff --git a/ui/app_list/views/app_list_main_view.cc b/ui/app_list/views/app_list_main_view.cc
index 2cbe4f68e5dcb1fac2db1755fb991b5d794b2f57..5a69fbff6037e426611b0ac4c938b2f55da5ff39 100644
--- a/ui/app_list/views/app_list_main_view.cc
+++ b/ui/app_list/views/app_list_main_view.cc
@@ -151,6 +151,8 @@ void AppListMainView::AddContentsViews() {
contents_view_->SetPaintToLayer(true);
contents_view_->SetFillsBoundsOpaquely(false);
contents_view_->layer()->SetMasksToBounds(true);
+
+ delegate_->StartSearch();
}
AppListMainView::~AppListMainView() {
@@ -309,10 +311,7 @@ void AppListMainView::QueryChanged(SearchBoxView* sender) {
contents_view_->ShowSearchResults(should_show_search);
UpdateSearchBoxVisibility();
- if (should_show_search)
- delegate_->StartSearch();
- else
- delegate_->StopSearch();
+ delegate_->StartSearch();
}
void AppListMainView::OnResultInstalled(SearchResult* result) {

Powered by Google App Engine
This is Rietveld 408576698