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

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

Issue 2961923002: Use EnablePlayStoreAppSearch feature flag. (Closed)
Patch Set: Oshima's comment. Created 3 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
« no previous file with comments | « no previous file | ui/app_list/app_list_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/search/search_controller_factory.cc
diff --git a/chrome/browser/ui/app_list/search/search_controller_factory.cc b/chrome/browser/ui/app_list/search/search_controller_factory.cc
index dfa37ec648e4876edff6a48dd28ffcae9b56a110..ab3a5226230892b7122c5c1dbdbf6fb322b7c19f 100644
--- a/chrome/browser/ui/app_list/search/search_controller_factory.cc
+++ b/chrome/browser/ui/app_list/search/search_controller_factory.cc
@@ -121,11 +121,14 @@ std::unique_ptr<SearchController> CreateSearchController(
}
#if defined(OS_CHROMEOS)
- size_t playstore_api_group_id =
- controller->AddGroup(kMaxPlayStoreResults, 1.0);
- controller->AddProvider(playstore_api_group_id,
- base::MakeUnique<ArcPlayStoreSearchProvider>(
- kMaxPlayStoreResults, profile, list_controller));
+ if (features::IsPlayStoreAppSearchEnabled()) {
+ size_t playstore_api_group_id =
+ controller->AddGroup(kMaxPlayStoreResults, 1.0);
+ controller->AddProvider(
+ playstore_api_group_id,
+ base::MakeUnique<ArcPlayStoreSearchProvider>(kMaxPlayStoreResults,
+ profile, list_controller));
+ }
#endif
return controller;
}
« no previous file with comments | « no previous file | ui/app_list/app_list_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698