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

Unified Diff: chrome/browser/autocomplete/search_provider.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/autocomplete/keyword_provider.cc ('k') | chrome/browser/instant/instant_field_trial.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/search_provider.cc
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc
index 2bbda0bb2b06a35660046f72c1cd8f65b6866d67..11a335b46b527e54401c8ec4cb7166946d37a3e7 100644
--- a/chrome/browser/autocomplete/search_provider.cc
+++ b/chrome/browser/autocomplete/search_provider.cc
@@ -440,9 +440,8 @@ URLFetcher* SearchProvider::CreateSuggestFetcher(int id,
const TemplateURLRef* const suggestions_url = provider.suggestions_url();
DCHECK(suggestions_url->SupportsReplacement());
URLFetcher* fetcher = URLFetcher::Create(id,
- GURL(suggestions_url->ReplaceSearchTerms(
- provider, text,
- TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16())),
+ GURL(suggestions_url->ReplaceSearchTermsUsingProfile(profile_, provider,
+ text, TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16())),
URLFetcher::GET, this);
fetcher->set_request_context(profile_->GetRequestContext());
fetcher->Start();
@@ -883,11 +882,8 @@ void SearchProvider::AddMatchToMap(const string16& query_string,
const TemplateURLRef* const search_url = provider.url();
DCHECK(search_url->SupportsReplacement());
- match.destination_url =
- GURL(search_url->ReplaceSearchTerms(provider,
- query_string,
- accepted_suggestion,
- input_text));
+ match.destination_url = GURL(search_url->ReplaceSearchTermsUsingProfile(
+ profile_, provider, query_string, accepted_suggestion, input_text));
// Search results don't look like URLs.
match.transition =
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/browser/instant/instant_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698