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

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

Issue 214423002: Reset the app list when it is shown on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_app_list_folder_drag_for_real
Patch Set: small change for tapted@ Created 6 years, 9 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_view.cc
diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
index cab7fd55ca892322dd02ee8e1c1d61dd1bcff8fe..b512e34e676f9af613234d8fa278b8688c7632a6 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -433,10 +433,8 @@ void AppListView::OnWidgetVisibilityChanged(views::Widget* widget,
if (widget != GetWidget())
return;
- // We clear the search when hiding so the next time the app list appears it is
- // not showing search results.
if (!visible)
- app_list_main_view_->search_box_view()->ClearSearch();
+ app_list_main_view_->ResetForShow();
// Whether we need to signin or not may have changed since last time we were
// shown.

Powered by Google App Engine
This is Rietveld 408576698