Index: components/omnibox/browser/history_quick_provider.cc |
diff --git a/components/omnibox/browser/history_quick_provider.cc b/components/omnibox/browser/history_quick_provider.cc |
index ea045ad37532f8057b98549775281066ed7d24d5..f8b9a767873392d2c9ba4774d7fd0e52c1f95262 100644 |
--- a/components/omnibox/browser/history_quick_provider.cc |
+++ b/components/omnibox/browser/history_quick_provider.cc |
@@ -200,14 +200,10 @@ AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch( |
autocomplete_input_.text(), FixupUserInput(autocomplete_input_).second, |
false, base::UTF8ToUTF16(info.url().spec())); |
- // Format the URL autocomplete presentation. |
- const url_formatter::FormatUrlTypes format_types = |
- url_formatter::kFormatUrlOmitAll & |
- ~(!history_match.match_in_scheme ? 0 : url_formatter::kFormatUrlOmitHTTP); |
base::OffsetAdjuster::Adjustments adjustments; |
- match.contents = url_formatter::FormatUrlWithAdjustments( |
- info.url(), format_types, net::UnescapeRule::SPACES, nullptr, |
- nullptr, &adjustments); |
+ match.contents = |
+ AutocompleteMatch::FormatUrlForSuggestionDisplayWithAdjustments( |
+ info.url(), !history_match.match_in_scheme, &adjustments); |
match.fill_into_edit = |
AutocompleteInput::FormattedStringWithEquivalentMeaning( |
info.url(), match.contents, client()->GetSchemeClassifier()); |