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

Unified Diff: chrome/browser/search_engines/search_host_to_urls_map_unittest.cc

Issue 10173001: Add a Profile* member to TemplateURL. This makes some invocations of ReplaceSearchTerms() a bit le… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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/search_host_to_urls_map_unittest.cc
===================================================================
--- chrome/browser/search_engines/search_host_to_urls_map_unittest.cc (revision 132905)
+++ chrome/browser/search_engines/search_host_to_urls_map_unittest.cc (working copy)
@@ -31,9 +31,9 @@
host_ = "www.unittest.com";
TemplateURLData data;
data.SetURL("http://" + host_ + "/path1");
- t_urls_[0].reset(new TemplateURL(data));
+ t_urls_[0].reset(new TemplateURL(NULL, data));
data.SetURL("http://" + host_ + "/path2");
- t_urls_[1].reset(new TemplateURL(data));
+ t_urls_[1].reset(new TemplateURL(NULL, data));
std::vector<const TemplateURL*> template_urls;
template_urls.push_back(t_urls_[0].get());
template_urls.push_back(t_urls_[1].get());
@@ -47,7 +47,7 @@
std::string new_host = "example.com";
TemplateURLData data;
data.SetURL("http://" + new_host + "/");
- TemplateURL new_t_url(data);
+ TemplateURL new_t_url(NULL, data);
UIThreadSearchTermsData search_terms_data;
provider_map_->Add(&new_t_url, search_terms_data);
@@ -79,7 +79,7 @@
// Add in a url with the templated Google base url.
TemplateURLData data;
data.SetURL("{google:baseURL}?q={searchTerms}");
- TemplateURL new_t_url(data);
+ TemplateURL new_t_url(NULL, data);
provider_map_->Add(&new_t_url, search_terms_data);
ASSERT_EQ(&new_t_url, provider_map_->GetTemplateURLForHost(google_base_url));

Powered by Google App Engine
This is Rietveld 408576698