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

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

Issue 8342049: Added Protector, hooked up DSE verification with error bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always persist default search provider in db Created 9 years, 2 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 fb98de6743c6bdd36913a2869701cc5c22b637c6..85f1f1eef85b017a5afb52b89b41cceecad04cd3 100644
--- a/chrome/browser/search_engines/template_url_service.h
+++ b/chrome/browser/search_engines/template_url_service.h
@@ -202,6 +202,11 @@ class TemplateURLService : public WebDataServiceConsumer,
// Returns true if the default search is managed through group policy.
bool is_default_search_managed() const { return is_default_search_managed_; }
+ // Returns the default search specified in the prepopulated data, if it
+ // exists. If not, returns first URL in |template_urls_|, or NULL if that's
+ // empty.
sky 2011/10/24 17:04:13 Document ownership of returned pointer.
whywhat 2011/10/25 10:30:41 Done.
+ const TemplateURL* FindNewDefaultSearchProvider();
+
// Observers used to listen for changes to the model.
// TemplateURLService does NOT delete the observers when deleted.
void AddObserver(TemplateURLServiceObserver* observer);
@@ -425,11 +430,6 @@ class TemplateURLService : public WebDataServiceConsumer,
// preference has changed.
void UpdateDefaultSearch();
- // Returns the default search specified in the prepopulated data, if it
- // exists. If not, returns first URL in |template_urls_|, or NULL if that's
- // empty.
- const TemplateURL* FindNewDefaultSearchProvider();
-
// Set the default search provider even if it is managed. |url| may be null.
// Caller is responsible for notifying observers.
void SetDefaultSearchProviderNoNotify(const TemplateURL* url);

Powered by Google App Engine
This is Rietveld 408576698