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

Unified Diff: chrome/browser/ui/app_list/search/search_controller.cc

Issue 379333005: Allow AppSearchProvider to provide recommendations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 years, 5 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/search/search_controller.cc
diff --git a/chrome/browser/ui/app_list/search/search_controller.cc b/chrome/browser/ui/app_list/search/search_controller.cc
index 86de7d01403ebfb21902570492cf3aa8bab5268f..aa54eb863378ea0e5a6acae601c6c383189c8c8e 100644
--- a/chrome/browser/ui/app_list/search/search_controller.cc
+++ b/chrome/browser/ui/app_list/search/search_controller.cc
@@ -35,6 +35,9 @@
namespace {
const char kAppListSearchResultOpenTypeHistogram[] =
"Apps.AppListSearchResultOpenType";
+
+ // Maximum time (in milliseconds) to wait to the search providers to finish.
+ const int kStopTimeMS = 1500;
}
namespace app_list {
@@ -109,8 +112,6 @@ void SearchController::Start() {
OnResultsChanged();
- // Maximum time (in milliseconds) to wait to the search providers to finish.
- const int kStopTimeMS = 1500;
stop_timer_.Start(FROM_HERE,
base::TimeDelta::FromMilliseconds(kStopTimeMS),
base::Bind(&SearchController::Stop,

Powered by Google App Engine
This is Rietveld 408576698