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

Unified Diff: chrome/browser/search/search_unittest.cc

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/search_unittest.cc
diff --git a/chrome/browser/search/search_unittest.cc b/chrome/browser/search/search_unittest.cc
index e3c1cecbfa2362576357fb7d40fa06004b6f93e5..5034bb62d3d8b1c43be70fd7c41456ed9c6c8e69 100644
--- a/chrome/browser/search/search_unittest.cc
+++ b/chrome/browser/search/search_unittest.cc
@@ -185,7 +185,7 @@ class SearchTest : public BrowserWithTestWindowTest {
TemplateURL* template_url = new TemplateURL(profile(), data);
// Takes ownership of |template_url|.
template_url_service->Add(template_url);
- template_url_service->SetDefaultSearchProvider(template_url);
+ template_url_service->SetUserSelectedDefaultSearchProvider(template_url);
}
// Build an Instant URL with or without a valid search terms replacement key
@@ -209,7 +209,7 @@ class SearchTest : public BrowserWithTestWindowTest {
TemplateURL* template_url = new TemplateURL(profile(), data);
// Takes ownership of |template_url|.
template_url_service->Add(template_url);
- template_url_service->SetDefaultSearchProvider(template_url);
+ template_url_service->SetUserSelectedDefaultSearchProvider(template_url);
}
bool InInstantProcess(const content::WebContents* contents) {
@@ -627,7 +627,7 @@ TEST_F(SearchTest, CommandLineOverrides) {
TemplateURL* template_url = new TemplateURL(profile(), data);
// Takes ownership of |template_url|.
template_url_service->Add(template_url);
- template_url_service->SetDefaultSearchProvider(template_url);
+ template_url_service->SetUserSelectedDefaultSearchProvider(template_url);
// By default, Instant Extended forces the instant URL to be HTTPS, so even if
// we set a Google base URL that is HTTP, we should get an HTTPS URL.
@@ -871,7 +871,7 @@ class SearchURLTest : public SearchTest {
template_url_ = new TemplateURL(profile(), data);
// |template_url_service| takes ownership of |template_url_|.
template_url_service->Add(template_url_);
- template_url_service->SetDefaultSearchProvider(template_url_);
+ template_url_service->SetUserSelectedDefaultSearchProvider(template_url_);
}
TemplateURL* template_url_;
« no previous file with comments | « chrome/browser/search/instant_unittest_base.cc ('k') | chrome/browser/search_engines/search_provider_install_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698