| Index: components/omnibox/browser/zero_suggest_provider.cc
|
| diff --git a/components/omnibox/browser/zero_suggest_provider.cc b/components/omnibox/browser/zero_suggest_provider.cc
|
| index 11fe0a0e0caa9561f97c4f0d8b8b0c9ab4d50173..338afc14cadf6ce302cfd4f3b8e9db8a4edcbd55 100644
|
| --- a/components/omnibox/browser/zero_suggest_provider.cc
|
| +++ b/components/omnibox/browser/zero_suggest_provider.cc
|
| @@ -375,8 +375,11 @@ AutocompleteMatch ZeroSuggestProvider::NavigationToMatch(
|
| match.destination_url = navigation.url();
|
|
|
| // Zero suggest results should always omit protocols and never appear bold.
|
| - match.contents = AutocompleteMatch::FormatUrlForSuggestionDisplay(
|
| - navigation.url(), true /* trim_scheme */, nullptr);
|
| + auto format_types =
|
| + AutocompleteMatch::GetFormatForSuggestionDisplay(true /* trim_scheme */);
|
| + match.contents = url_formatter::FormatUrl(navigation.url(), format_types,
|
| + net::UnescapeRule::SPACES, nullptr,
|
| + nullptr, nullptr);
|
| match.fill_into_edit +=
|
| AutocompleteInput::FormattedStringWithEquivalentMeaning(
|
| navigation.url(), match.contents, client()->GetSchemeClassifier());
|
|
|