diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 18:40:26 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 18:40:26 +0000 |
commit | 16fca9b8a9e129a2bc50bc39fa3d2b33db64efdb (patch) | |
tree | 09d56d4b75a0651a3ad4f82a4111c2943af772a1 /chrome/browser/search_engines/template_url_parser.cc | |
parent | 5284ee3d4b255ba50147550b5de9df85fc71076d (diff) | |
download | chromium_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/search_engines/template_url_parser.cc')
-rw-r--r-- | chrome/browser/search_engines/template_url_parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/search_engines/template_url_parser.cc b/chrome/browser/search_engines/template_url_parser.cc index f83efd7..a9f6939 100644 --- a/chrome/browser/search_engines/template_url_parser.cc +++ b/chrome/browser/search_engines/template_url_parser.cc @@ -313,7 +313,7 @@ TemplateURL* TemplateURLParsingContext::GetTemplateURL( DCHECK(!keyword.empty()); data_.SetKeyword(keyword); data_.show_in_default_list = show_in_default_list; - return new TemplateURL(data_); + return new TemplateURL(profile, data_); } // static |