Index: chrome/browser/autocomplete/search_provider.cc |
=================================================================== |
--- chrome/browser/autocomplete/search_provider.cc (revision 18266) |
+++ chrome/browser/autocomplete/search_provider.cc (working copy) |
@@ -365,9 +365,9 @@ |
const TemplateURLRef* const suggestions_url = provider.suggestions_url(); |
DCHECK(suggestions_url->SupportsReplacement()); |
URLFetcher* fetcher = URLFetcher::Create(id, |
- suggestions_url->ReplaceSearchTerms( |
+ GURL(WideToUTF8(suggestions_url->ReplaceSearchTerms( |
provider, text, TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, |
- std::wstring()), |
+ std::wstring()))), |
URLFetcher::GET, this); |
fetcher->set_request_context(profile_->GetRequestContext()); |
fetcher->Start(); |
@@ -763,10 +763,10 @@ |
const TemplateURLRef* const search_url = provider.url(); |
DCHECK(search_url->SupportsReplacement()); |
- match.destination_url = search_url->ReplaceSearchTerms(provider, |
- query_string, |
- accepted_suggestion, |
- input_text); |
+ match.destination_url = |
+ GURL(WideToUTF8(search_url->ReplaceSearchTerms(provider, query_string, |
+ accepted_suggestion, |
+ input_text))); |
// Search results don't look like URLs. |
match.transition = |