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

Unified Diff: chrome/browser/search_engines/template_url_service.h

Issue 270533007: Some refactorings to facilitate a larger change to TemplateURLService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/search_engines/template_url_service.h
diff --git a/chrome/browser/search_engines/template_url_service.h b/chrome/browser/search_engines/template_url_service.h
index 60bcd6c21f7bd806d5f670095fb6f574863fa678..2afa803b4a6c70e4ca0f0a40945aee718fff4b22 100644
--- a/chrome/browser/search_engines/template_url_service.h
+++ b/chrome/browser/search_engines/template_url_service.h
@@ -156,7 +156,7 @@ class TemplateURLService : public WebDataServiceConsumer,
// TemplateURLs that support replacement are returned.
void FindMatchingKeywords(const base::string16& prefix,
bool support_replacement_only,
- TemplateURLVector* matches) const;
+ TemplateURLVector* matches);
// Looks up |keyword| and returns the element it maps to. Returns NULL if
// the keyword was not found.
@@ -276,7 +276,7 @@ class TemplateURLService : public WebDataServiceConsumer,
// revved: all existing prepopulated entries are checked against the current
// prepopulate data, any now-extraneous safe_for_autoreplace() entries are
// removed, any existing engines are reset to the provided data (except for
- // user-edited names or keywords), and any new prepopulated anegines are
+ // user-edited names or keywords), and any new prepopulated engines are
// added.
//
// After this, the default search engine is reset to the default entry in the
@@ -666,11 +666,11 @@ class TemplateURLService : public WebDataServiceConsumer,
// Returns a new TemplateURL for the given extension.
TemplateURL* CreateTemplateURLForExtension(
- const ExtensionKeyword& extension_keyword) const;
+ const ExtensionKeyword& extension_keyword);
// Returns the TemplateURL associated with |extension_id|, if any.
TemplateURL* FindTemplateURLForExtension(const std::string& extension_id,
- TemplateURL::Type type) const;
+ TemplateURL::Type type);
// Finds the most recently-installed NORMAL_CONTROLLED_BY_EXTENSION engine
// that supports replacement and wants to be default, if any.
@@ -725,7 +725,7 @@ class TemplateURLService : public WebDataServiceConsumer,
std::vector<history::URLVisitedDetails> visits_to_add_;
// Once loaded, the default search provider. This is a pointer to a
- // TemplateURL owned by template_urls_.
+ // TemplateURL owned by |template_urls_|.
TemplateURL* default_search_provider_;
// The initial search provider extracted from preferences. This is only valid
@@ -779,9 +779,8 @@ class TemplateURLService : public WebDataServiceConsumer,
// Stores a list of callbacks to be run after TemplateURLService has loaded.
base::CallbackList<void(void)> on_loaded_callbacks_;
- // Helper class to manage the default search engine. This will be NULL when
- // using the testing-specific constructor.
- scoped_ptr<DefaultSearchManager> default_search_manager_;
+ // Helper class to manage the default search engine.
+ DefaultSearchManager default_search_manager_;
DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
};

Powered by Google App Engine
This is Rietveld 408576698