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

Unified Diff: components/omnibox/keyword_provider.cc

Issue 1192373002: Prepare AutocompleteController for componentization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@componentize_zero_suggest_provider
Patch Set: Response to review Created 5 years, 6 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 | « components/omnibox/keyword_provider.h ('k') | components/omnibox/keyword_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/keyword_provider.cc
diff --git a/components/omnibox/keyword_provider.cc b/components/omnibox/keyword_provider.cc
index 273a6e00d5a291c20e4bc918483572406ec87d01..c7d8a81c3185d1c24573836f468d1e7f9109be2a 100644
--- a/components/omnibox/keyword_provider.cc
+++ b/components/omnibox/keyword_provider.cc
@@ -12,6 +12,7 @@
#include "base/strings/utf_string_conversions.h"
#include "components/metrics/proto/omnibox_input_type.pb.h"
#include "components/omnibox/autocomplete_match.h"
+#include "components/omnibox/autocomplete_provider_client.h"
#include "components/omnibox/autocomplete_provider_listener.h"
#include "components/omnibox/keyword_extensions_delegate.h"
#include "components/search_engines/template_url.h"
@@ -69,12 +70,12 @@ void ScopedEndExtensionKeywordMode::StayInKeywordMode() {
} // namespace
-KeywordProvider::KeywordProvider(
- AutocompleteProviderListener* listener,
- TemplateURLService* model)
+KeywordProvider::KeywordProvider(AutocompleteProviderClient* client,
+ AutocompleteProviderListener* listener)
: AutocompleteProvider(AutocompleteProvider::TYPE_KEYWORD),
listener_(listener),
- model_(model) {
+ model_(client->GetTemplateURLService()),
+ extensions_delegate_(client->GetKeywordExtensionsDelegate(this)) {
}
// static
« no previous file with comments | « components/omnibox/keyword_provider.h ('k') | components/omnibox/keyword_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698