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

Unified Diff: chrome/browser/search/instant_unittest_base.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
« no previous file with comments | « chrome/browser/search/instant_unittest_base.h ('k') | chrome/browser/search/search_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/instant_unittest_base.cc
diff --git a/chrome/browser/search/instant_unittest_base.cc b/chrome/browser/search/instant_unittest_base.cc
index b45dd19a63dcf8251dd85fc2f01534bb617d9c08..629100934369a6e92fcf3a105e03a90b32ed1a68 100644
--- a/chrome/browser/search/instant_unittest_base.cc
+++ b/chrome/browser/search/instant_unittest_base.cc
@@ -49,7 +49,7 @@ void InstantUnitTestBase::SetUpWithoutQueryExtraction() {
}
#endif
-void InstantUnitTestBase::SetDefaultSearchProvider(
+void InstantUnitTestBase::SetUserSelectedDefaultSearchProvider(
const std::string& base_url) {
TemplateURLData data;
data.SetURL(base_url + "url?bar={searchTerms}");
@@ -63,7 +63,7 @@ void InstantUnitTestBase::SetDefaultSearchProvider(
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);
}
void InstantUnitTestBase::NotifyGoogleBaseURLUpdate(
@@ -99,6 +99,6 @@ void InstantUnitTestBase::SetUpHelper() {
TestingPrefServiceSyncable* pref_service = profile()->GetTestingPrefService();
pref_service->SetUserPref(prefs::kLastPromptedGoogleURL,
new base::StringValue("https://www.google.com/"));
- SetDefaultSearchProvider("{google:baseURL}");
+ SetUserSelectedDefaultSearchProvider("{google:baseURL}");
instant_service_ = InstantServiceFactory::GetForProfile(profile());
}
« no previous file with comments | « chrome/browser/search/instant_unittest_base.h ('k') | chrome/browser/search/search_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698