| Index: chrome/browser/autocomplete/search_provider.cc
|
| ===================================================================
|
| --- chrome/browser/autocomplete/search_provider.cc (revision 71499)
|
| +++ chrome/browser/autocomplete/search_provider.cc (working copy)
|
| @@ -417,8 +417,8 @@
|
| DCHECK(suggestions_url->SupportsReplacement());
|
| URLFetcher* fetcher = URLFetcher::Create(id,
|
| GURL(suggestions_url->ReplaceSearchTerms(
|
| - provider, WideToUTF16Hack(text),
|
| - TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16())),
|
| + provider, text, TemplateURLRef::NO_SUGGESTIONS_AVAILABLE,
|
| + std::wstring())),
|
| URLFetcher::GET, this);
|
| fetcher->set_request_context(profile_->GetRequestContext());
|
| fetcher->Start();
|
| @@ -778,8 +778,7 @@
|
| ++search_start;
|
| }
|
| if (is_keyword) {
|
| - match.fill_into_edit.append(UTF16ToWideHack(
|
| - providers_.keyword_provider().keyword() + char16(' ')));
|
| + match.fill_into_edit.append(providers_.keyword_provider().keyword() + L" ");
|
| match.template_url = &providers_.keyword_provider();
|
| }
|
| match.fill_into_edit.append(query_string);
|
| @@ -793,9 +792,9 @@
|
| DCHECK(search_url->SupportsReplacement());
|
| match.destination_url =
|
| GURL(search_url->ReplaceSearchTerms(provider,
|
| - WideToUTF16Hack(query_string),
|
| + query_string,
|
| accepted_suggestion,
|
| - WideToUTF16Hack(input_text)));
|
| + input_text));
|
|
|
| // Search results don't look like URLs.
|
| match.transition =
|
| @@ -873,8 +872,8 @@
|
| match.description.assign(
|
| UTF16ToWideHack(l10n_util::GetStringFUTF16(
|
| IDS_AUTOCOMPLETE_SEARCH_DESCRIPTION,
|
| - providers_.default_provider().
|
| - AdjustedShortNameForLocaleDirection())));
|
| + WideToUTF16Hack(providers_.default_provider().
|
| + AdjustedShortNameForLocaleDirection()))));
|
| match.description_class.push_back(
|
| ACMatchClassification(0, ACMatchClassification::DIM));
|
| // Only the first search match gets a description.
|
|
|