| 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 =
|
|
|