| 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..45e7d86b1172c646767a6874edd5866065ef9424 100644
|
| --- a/components/omnibox/browser/zero_suggest_provider.cc
|
| +++ b/components/omnibox/browser/zero_suggest_provider.cc
|
| @@ -375,8 +375,10 @@ 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::GetFormatTypes(true);
|
| + 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());
|
|
|