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

Unified Diff: components/omnibox/history_quick_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/history_quick_provider.h ('k') | components/omnibox/keyword_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/history_quick_provider.cc
diff --git a/components/omnibox/history_quick_provider.cc b/components/omnibox/history_quick_provider.cc
index 40037b11d716019f5133b048f546898cc2675257..a6b9f16bb9a2cd6c08fa81779b934072e709fd53 100644
--- a/components/omnibox/history_quick_provider.cc
+++ b/components/omnibox/history_quick_provider.cc
@@ -46,12 +46,10 @@ const char kBug464926CrashKey[] = "bug-464926-info";
bool HistoryQuickProvider::disabled_ = false;
-HistoryQuickProvider::HistoryQuickProvider(
- AutocompleteProviderClient* client,
- InMemoryURLIndex* in_memory_url_index)
+HistoryQuickProvider::HistoryQuickProvider(AutocompleteProviderClient* client)
: HistoryProvider(AutocompleteProvider::TYPE_HISTORY_QUICK, client),
languages_(client->GetAcceptLanguages()),
- in_memory_url_index_(in_memory_url_index) {
+ in_memory_url_index_(client->GetInMemoryURLIndex()) {
}
void HistoryQuickProvider::Start(const AutocompleteInput& input,
« no previous file with comments | « components/omnibox/history_quick_provider.h ('k') | components/omnibox/keyword_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698