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

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

Issue 460313002: No chrome dependencies in KeywordProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/keyword_provider.h
diff --git a/chrome/browser/autocomplete/keyword_provider.h b/chrome/browser/autocomplete/keyword_provider.h
index 6c2d348ae45664d4e37da5fa2408b64b65dd4267..ed4d32ca1efeaaa88dc3cb2857ebd513412bee52 100644
--- a/chrome/browser/autocomplete/keyword_provider.h
+++ b/chrome/browser/autocomplete/keyword_provider.h
@@ -22,7 +22,6 @@
class AutocompleteProviderListener;
class KeywordExtensionsDelegate;
-class Profile;
class TemplateURL;
class TemplateURLService;
@@ -50,11 +49,12 @@ class TemplateURLService;
// "<enter term(s)>" as the substituted input, and does nothing when selected.
class KeywordProvider : public AutocompleteProvider {
public:
- KeywordProvider(AutocompleteProviderListener* listener, Profile* profile);
- // For testing.
KeywordProvider(AutocompleteProviderListener* listener,
TemplateURLService* model);
+ void SetExtensionsDelegate(
+ scoped_ptr<KeywordExtensionsDelegate> extensions_delegate);
+
// Extracts the next whitespace-delimited token from input and returns it.
// Sets |remaining_input| to everything after the first token (skipping over
// the first intervening whitespace).
@@ -141,10 +141,8 @@ class KeywordProvider : public AutocompleteProvider {
TemplateURLService* GetTemplateURLService() const;
AutocompleteProviderListener* listener_;
- Profile* profile_;
- // Model for the keywords. This is only non-null when testing, otherwise the
- // TemplateURLService from the Profile is used.
+ // Model for the keywords.
TemplateURLService* model_;
// Delegate to handle the extensions-only logic for KeywordProvider.

Powered by Google App Engine
This is Rietveld 408576698