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); |
}; |