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

Unified Diff: chrome/browser/ui/browser_init.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/ui/browser_init.cc
===================================================================
--- chrome/browser/ui/browser_init.cc (revision 132909)
+++ chrome/browser/ui/browser_init.cc (working copy)
@@ -1652,9 +1652,8 @@
const TemplateURLRef& search_url = default_provider->url_ref();
DCHECK(search_url.SupportsReplacement());
string16 search_term = param.LossyDisplayName().substr(2);
- urls.push_back(GURL(search_url.ReplaceSearchTermsUsingProfile(
- profile, search_term, TemplateURLRef::NO_SUGGESTIONS_AVAILABLE,
- string16())));
+ urls.push_back(GURL(search_url.ReplaceSearchTerms(search_term,
+ TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16())));
continue;
}
}

Powered by Google App Engine
This is Rietveld 408576698