Chromium Code Reviews| 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 3014465cd3fb91dc842760b3d04c835e4911502a..663eb3b06d4f0ae1656c6e162e96261798d9e506 100644 |
| --- a/chrome/browser/ui/app_list/search/search_controller.cc |
| +++ b/chrome/browser/ui/app_list/search/search_controller.cc |
| @@ -15,6 +15,7 @@ |
| #include "chrome/browser/ui/app_list/search/chrome_search_result.h" |
| #include "chrome/browser/ui/app_list/search/omnibox_provider.h" |
| #include "chrome/browser/ui/app_list/search/search_provider.h" |
| +#include "chrome/browser/ui/app_list/search/webstore_provider.h" |
| #include "ui/app_list/search_box_model.h" |
| namespace app_list { |
| @@ -36,13 +37,12 @@ SearchController::~SearchController() {} |
| void SearchController::Init() { |
| mixer_->Init(); |
| - AddProvider(Mixer::MAIN_GROUP, |
| - scoped_ptr<SearchProvider>( |
| - new AppSearchProvider(profile_, list_controller_)).Pass()); |
| - AddProvider(Mixer::OMNIBOX_GROUP, |
| - scoped_ptr<SearchProvider>(new OmniboxProvider(profile_)).Pass()); |
| - |
| - // TODO(xiyuan): Add providers. |
| + AddProvider(Mixer::MAIN_GROUP, scoped_ptr<SearchProvider>( |
|
James Cook
2013/05/20 14:39:34
I really like this approach of having a generic li
|
| + new AppSearchProvider(profile_, list_controller_)).Pass()); |
| + AddProvider(Mixer::OMNIBOX_GROUP, scoped_ptr<SearchProvider>( |
| + new OmniboxProvider(profile_)).Pass()); |
| + AddProvider(Mixer::WEBSTORE_GROUP, scoped_ptr<SearchProvider>( |
| + new WebstoreProvider(profile_)).Pass()); |
| } |
| void SearchController::Start() { |