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

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

Issue 231863008: Rename SetDefaultSearchProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 8 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 bbd7f044b7f314785d5c86401c50fa302a87bc35..e2dc86a5d87fda9a557120938123713964ff3f7a 100644
--- a/chrome/browser/search_engines/template_url_service.h
+++ b/chrome/browser/search_engines/template_url_service.h
@@ -229,7 +229,7 @@ class TemplateURLService : public WebDataServiceConsumer,
// Set the default search provider. |url| may be null.
// This will assert if the default search is managed; the UI should not be
// invoking this method in that situation.
- void SetDefaultSearchProvider(TemplateURL* url);
+ void SetUserSelectedDefaultSearchProvider(TemplateURL* url);
// Returns the default search provider. If the TemplateURLService hasn't been
// loaded, the default search provider is pulled from preferences.
@@ -530,6 +530,11 @@ class TemplateURLService : public WebDataServiceConsumer,
// preference has changed.
void UpdateDefaultSearch();
+ // Set the default search provider. |url| may be user-selected or
+ // automatically selected and may be null.
+ // This will assert if the default search is managed.
+ void SetDefaultSearchProvider(TemplateURL* url);
+
// Set the default search provider even if it is managed. |url| may be null.
// Caller is responsible for notifying observers. Returns whether |url| was
// found in |template_urls_|.

Powered by Google App Engine
This is Rietveld 408576698