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

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

Issue 644863002: Introduce OpenURL to AppListControllerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 2 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_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 987da43d262a8417df784aa4ade9836bc5d8fdd6..c9fa326c42f51d6308719b52ccc5f583eeb0c574 100644
--- a/chrome/browser/ui/app_list/search/search_controller_factory.cc
+++ b/chrome/browser/ui/app_list/search/search_controller_factory.cc
@@ -25,16 +25,20 @@ scoped_ptr<SearchController> CreateSearchController(
scoped_ptr<SearchController> controller(new SearchController(
search_box, results, HistoryFactory::GetForBrowserContext(profile)));
- controller->AddProvider(Mixer::MAIN_GROUP, scoped_ptr<SearchProvider>(
- new AppSearchProvider(profile, list_controller)).Pass());
- controller->AddProvider(Mixer::OMNIBOX_GROUP, scoped_ptr<SearchProvider>(
- new OmniboxProvider(profile)).Pass());
- controller->AddProvider(Mixer::WEBSTORE_GROUP, scoped_ptr<SearchProvider>(
- new WebstoreProvider(profile, list_controller)).Pass());
+ controller->AddProvider(Mixer::MAIN_GROUP,
+ scoped_ptr<SearchProvider>(
+ new AppSearchProvider(profile, list_controller)));
+ controller->AddProvider(Mixer::OMNIBOX_GROUP,
+ scoped_ptr<SearchProvider>(
+ new OmniboxProvider(profile, list_controller)));
+ controller->AddProvider(Mixer::WEBSTORE_GROUP,
+ scoped_ptr<SearchProvider>(
+ new WebstoreProvider(profile, list_controller)));
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisablePeopleSearch)) {
- controller->AddProvider(Mixer::PEOPLE_GROUP, scoped_ptr<SearchProvider>(
- new PeopleProvider(profile)).Pass());
+ controller->AddProvider(Mixer::PEOPLE_GROUP,
+ scoped_ptr<SearchProvider>(
+ new PeopleProvider(profile, list_controller)));
}
return controller.Pass();
« no previous file with comments | « chrome/browser/ui/app_list/search/people/people_result.cc ('k') | chrome/browser/ui/app_list/search/search_webstore_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698