Index: components/omnibox/browser/clipboard_url_provider.cc |
diff --git a/components/omnibox/browser/clipboard_url_provider.cc b/components/omnibox/browser/clipboard_url_provider.cc |
index f2f12d3d4b5c62e35d4c2bd73773af925b2fd9ab..b3729328beefb959f6f9bf45f34d439effcd0d76 100644 |
--- a/components/omnibox/browser/clipboard_url_provider.cc |
+++ b/components/omnibox/browser/clipboard_url_provider.cc |
@@ -86,9 +86,8 @@ void ClipboardURLProvider::Start(const AutocompleteInput& input, |
// Add the clipboard match. The relevance is 800 to beat ZeroSuggest results. |
AutocompleteMatch match(this, 800, false, AutocompleteMatchType::CLIPBOARD); |
match.destination_url = url; |
- match.contents.assign(url_formatter::FormatUrl( |
- url, url_formatter::kFormatUrlOmitAll, net::UnescapeRule::SPACES, |
- nullptr, nullptr, nullptr)); |
+ match.contents.assign(AutocompleteMatch::FormatUrlForSuggestionDisplay( |
+ url, true /* trim_scheme */, nullptr)); |
AutocompleteMatch::ClassifyLocationInString( |
base::string16::npos, 0, match.contents.length(), |
ACMatchClassification::URL, &match.contents_class); |