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

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: fix merge 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
« no previous file with comments | « ui/app_list/search_result_observer.h ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c0f7a832cb19717779ca47346a3ee56c3d3ad281..70c926c5e63c7a16f3097affa0e45d18b8d0948c 100644
--- a/ui/app_list/views/app_list_main_view.cc
+++ b/ui/app_list/views/app_list_main_view.cc
@@ -152,6 +152,8 @@ void AppListMainView::AddContentsViews() {
contents_view_->SetPaintToLayer(true);
contents_view_->SetFillsBoundsOpaquely(false);
contents_view_->layer()->SetMasksToBounds(true);
+
+ delegate_->StartSearch();
}
AppListMainView::~AppListMainView() {
@@ -317,10 +319,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) {
« no previous file with comments | « ui/app_list/search_result_observer.h ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698