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

Unified Diff: chrome/browser/autocomplete/autocomplete_controller.cc

Issue 388203002: Remove listener_ from AutocompleteProvider base class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | chrome/browser/autocomplete/autocomplete_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_controller.cc
diff --git a/chrome/browser/autocomplete/autocomplete_controller.cc b/chrome/browser/autocomplete/autocomplete_controller.cc
index d3ccefe64499da50fa46e9e9528334e7fec8dbf1..868b65d06e1cea510a97bc5c9d2ef131b4429a8f 100644
--- a/chrome/browser/autocomplete/autocomplete_controller.cc
+++ b/chrome/browser/autocomplete/autocomplete_controller.cc
@@ -183,11 +183,11 @@ AutocompleteController::AutocompleteController(
template_url_service_(template_url_service) {
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
if (provider_types & AutocompleteProvider::TYPE_BOOKMARK)
- providers_.push_back(new BookmarkProvider(this, profile));
+ providers_.push_back(new BookmarkProvider(profile));
if (provider_types & AutocompleteProvider::TYPE_BUILTIN)
- providers_.push_back(new BuiltinProvider(this));
+ providers_.push_back(new BuiltinProvider());
if (provider_types & AutocompleteProvider::TYPE_HISTORY_QUICK)
- providers_.push_back(new HistoryQuickProvider(this, profile));
+ providers_.push_back(new HistoryQuickProvider(profile));
if (provider_types & AutocompleteProvider::TYPE_HISTORY_URL) {
history_url_provider_ = new HistoryURLProvider(this, profile);
providers_.push_back(history_url_provider_);
@@ -204,7 +204,7 @@ AutocompleteController::AutocompleteController(
providers_.push_back(search_provider_);
}
if (provider_types & AutocompleteProvider::TYPE_SHORTCUTS)
- providers_.push_back(new ShortcutsProvider(this, profile));
+ providers_.push_back(new ShortcutsProvider(profile));
if (provider_types & AutocompleteProvider::TYPE_ZERO_SUGGEST) {
zero_suggest_provider_ = ZeroSuggestProvider::Create(this, profile);
if (zero_suggest_provider_)
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698