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

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

Issue 354773002: Reduces dependency from AutocompleteMatch to Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
Index: chrome/browser/autocomplete/autocomplete_controller.h
diff --git a/chrome/browser/autocomplete/autocomplete_controller.h b/chrome/browser/autocomplete/autocomplete_controller.h
index ed38d4189560adae5ea8f87c4d318b2f4c008bff..630aa8b4b9ff8bf31eef805e404923c499731979 100644
--- a/chrome/browser/autocomplete/autocomplete_controller.h
+++ b/chrome/browser/autocomplete/autocomplete_controller.h
@@ -21,6 +21,7 @@ class HistoryURLProvider;
class KeywordProvider;
class Profile;
class SearchProvider;
+class TemplateURLService;
class ZeroSuggestProvider;
// The AutocompleteController is the center of the autocomplete system. A
@@ -47,10 +48,12 @@ class AutocompleteController : public AutocompleteProviderListener {
public:
// |provider_types| is a bitmap containing AutocompleteProvider::Type values
// that will (potentially, depending on platform, flags, etc.) be
- // instantiated.
+ // instantiated. |template_url_service| is used to create URLs from the
+ // autocomplete results.
AutocompleteController(Profile* profile,
AutocompleteControllerDelegate* delegate,
- int provider_types);
+ int provider_types,
+ TemplateURLService* template_url_service);
Peter Kasting 2014/06/30 22:42:09 Nit: Place this right after the Profile* argument
Jun Mukai 2014/06/30 23:52:35 Done.
~AutocompleteController();
// Starts an autocomplete query, which continues until all providers are
@@ -237,7 +240,7 @@ class AutocompleteController : public AutocompleteProviderListener {
// notifications until Start() has been invoked on all providers.
bool in_start_;
- Profile* profile_;
+ TemplateURLService* template_url_service_;
DISALLOW_COPY_AND_ASSIGN(AutocompleteController);
};

Powered by Google App Engine
This is Rietveld 408576698