Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: components/omnibox/builtin_provider.cc

Issue 1215233003: Reland - Omnibox - Mark As Duplicates URLs that only differ by a trailing slash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move const Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/omnibox/builtin_provider.cc
diff --git a/components/omnibox/builtin_provider.cc b/components/omnibox/builtin_provider.cc
index 9d0a0081f6408eca78f11fad917ce3b128ab238a..83f8b7d308a58d37144adf5b9cb862de46b5fcba 100644
--- a/components/omnibox/builtin_provider.cc
+++ b/components/omnibox/builtin_provider.cc
@@ -124,6 +124,7 @@ void BuiltinProvider::AddMatch(const base::string16& match_string,
AutocompleteMatchType::NAVSUGGEST);
match.fill_into_edit = match_string;
match.inline_autocompletion = inline_completion;
+ match.StripLoneSlashOnInlineAutocompletion();
match.destination_url = GURL(match_string);
match.contents = match_string;
match.contents_class = styles;

Powered by Google App Engine
This is Rietveld 408576698