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

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

Issue 338363004: Remove Profile* from TemplateURL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 6 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 b50d75cf1087ef052a47c7a88c5e0c707849d23e..c90dbdcd23bd76598bdd3b343f33f1a7ace9c5c5 100644
--- a/chrome/browser/search/search_unittest.cc
+++ b/chrome/browser/search/search_unittest.cc
@@ -183,7 +183,7 @@ class SearchTest : public BrowserWithTestWindowTest {
data.alternate_urls.push_back("http://foo.com/alt#quux={searchTerms}");
data.search_terms_replacement_key = "strk";
- TemplateURL* template_url = new TemplateURL(profile(), data);
+ TemplateURL* template_url = new TemplateURL(data);
// Takes ownership of |template_url|.
template_url_service->Add(template_url);
template_url_service->SetUserSelectedDefaultSearchProvider(template_url);
@@ -207,7 +207,7 @@ class SearchTest : public BrowserWithTestWindowTest {
kInstantURLWithStrk : kInstantURLNoStrk);
data.search_terms_replacement_key = "strk";
- TemplateURL* template_url = new TemplateURL(profile(), data);
+ TemplateURL* template_url = new TemplateURL(data);
// Takes ownership of |template_url|.
template_url_service->Add(template_url);
template_url_service->SetUserSelectedDefaultSearchProvider(template_url);
@@ -625,7 +625,7 @@ TEST_F(SearchTest, CommandLineOverrides) {
data.SetURL("{google:baseURL}search?q={searchTerms}");
data.instant_url = "{google:baseURL}webhp?strk";
data.search_terms_replacement_key = "strk";
- TemplateURL* template_url = new TemplateURL(profile(), data);
+ TemplateURL* template_url = new TemplateURL(data);
// Takes ownership of |template_url|.
template_url_service->Add(template_url);
template_url_service->SetUserSelectedDefaultSearchProvider(template_url);
@@ -899,7 +899,7 @@ class SearchURLTest : public SearchTest {
data.SetURL("{google:baseURL}search?"
"{google:instantExtendedEnabledParameter}q={searchTerms}");
data.search_terms_replacement_key = "espv";
- template_url_ = new TemplateURL(profile(), data);
+ template_url_ = new TemplateURL(data);
// |template_url_service| takes ownership of |template_url_|.
template_url_service->Add(template_url_);
template_url_service->SetUserSelectedDefaultSearchProvider(template_url_);
« no previous file with comments | « chrome/browser/search/instant_unittest_base.cc ('k') | chrome/browser/search_engines/default_search_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698