summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/keyword_provider_unittest.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-23 18:40:26 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-23 18:40:26 +0000
commit16fca9b8a9e129a2bc50bc39fa3d2b33db64efdb (patch)
tree09d56d4b75a0651a3ad4f82a4111c2943af772a1 /chrome/browser/autocomplete/keyword_provider_unittest.cc
parent5284ee3d4b255ba50147550b5de9df85fc71076d (diff)
downloadchromium_src-16fca9b8a9e129a2bc50bc39fa3d2b33db64efdb.zip
chromium_src-16fca9b8a9e129a2bc50bc39fa3d2b33db64efdb.tar.gz
chromium_src-16fca9b8a9e129a2bc50bc39fa3d2b33db64efdb.tar.bz2
Add a Profile* member to TemplateURL. This makes some invocations of ReplaceSearchTerms() a bit less verbose, and will be useful later when UIThreadSearchTermsData starts taking a Profile*.
One downside is that there are a number of const_cast<>()s added when we try to access the profile() of a const TemplateURL*. These will all go away soon when TemplateURLService is switched to using "const" much less, so I didn't worry too much about them. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10173001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/keyword_provider_unittest.cc')
-rw-r--r--chrome/browser/autocomplete/keyword_provider_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/keyword_provider_unittest.cc b/chrome/browser/autocomplete/keyword_provider_unittest.cc
index dd3a2e9..685608d 100644
--- a/chrome/browser/autocomplete/keyword_provider_unittest.cc
+++ b/chrome/browser/autocomplete/keyword_provider_unittest.cc
@@ -205,7 +205,7 @@ TEST_F(KeywordProviderTest, AddKeyword) {
string16 keyword(ASCIIToUTF16("foo"));
data.SetKeyword(keyword);
data.SetURL("http://www.google.com/foo?q={searchTerms}");
- TemplateURL* template_url = new TemplateURL(data);
+ TemplateURL* template_url = new TemplateURL(NULL, data);
model_->Add(template_url);
ASSERT_TRUE(template_url == model_->GetTemplateURLForKeyword(keyword));
}