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

Unified Diff: chrome/browser/ui/browser_init.cc

Issue 7558014: Add a URL param to indicate group selection in Instant field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed @pkasting's comments Created 9 years, 4 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
« no previous file with comments | « chrome/browser/search_engines/template_url_prepopulate_data.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_init.cc
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc
index 786542d534fc01af59006b32ce876ab34a172bfc..9e26e58221ef5a076e417114fc750122bdc4a3c6 100644
--- a/chrome/browser/ui/browser_init.cc
+++ b/chrome/browser/ui/browser_init.cc
@@ -1298,10 +1298,9 @@ std::vector<GURL> BrowserInit::GetURLsFromCommandLine(
const TemplateURLRef* search_url = default_provider->url();
DCHECK(search_url->SupportsReplacement());
string16 search_term = param.LossyDisplayName().substr(2);
- urls.push_back(GURL(search_url->ReplaceSearchTerms(
- *default_provider, search_term,
- TemplateURLRef::NO_SUGGESTIONS_AVAILABLE,
- string16())));
+ urls.push_back(GURL(search_url->ReplaceSearchTermsUsingProfile(
+ profile, *default_provider, search_term,
+ TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16())));
continue;
}
}
« no previous file with comments | « chrome/browser/search_engines/template_url_prepopulate_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698