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

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: Passing NULL as far as possible 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
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..f36402fd81ace8acbf66eb431b21eb73c4f137c0 100644
--- a/chrome/browser/autocomplete/search_provider.cc
+++ b/chrome/browser/autocomplete/search_provider.cc
@@ -441,7 +441,7 @@ URLFetcher* SearchProvider::CreateSuggestFetcher(int id,
DCHECK(suggestions_url->SupportsReplacement());
URLFetcher* fetcher = URLFetcher::Create(id,
GURL(suggestions_url->ReplaceSearchTerms(
- provider, text,
+ profile_, provider, text,
TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16())),
URLFetcher::GET, this);
fetcher->set_request_context(profile_->GetRequestContext());
@@ -884,7 +884,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,
+ GURL(search_url->ReplaceSearchTerms(profile_,
+ provider,
query_string,
accepted_suggestion,
input_text));

Powered by Google App Engine
This is Rietveld 408576698