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

Unified Diff: components/omnibox/search_provider.cc

Issue 1098843004: Omnibox - Do Not Allow HTTP/HTTPS Equivalence if User Explicitly Entered A Scheme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new approach Created 5 years, 8 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/search_provider.cc
diff --git a/components/omnibox/search_provider.cc b/components/omnibox/search_provider.cc
index d0abdd7e0376119ed48aa6427a95e65b20c761aa..8178c47e67b96e6afd6ddb3e658c79d5640ba427 100644
--- a/components/omnibox/search_provider.cc
+++ b/components/omnibox/search_provider.cc
@@ -1439,7 +1439,8 @@ AutocompleteMatch SearchProvider::NavigationToMatch(
(match.inline_autocompletion.empty() ||
(!input_.prevent_inline_autocomplete() && !trimmed_whitespace));
match.EnsureUWYTIsAllowedToBeDefault(
- input_.canonicalized_url(), providers_.template_url_service());
+ input_.canonicalized_url(), input_.parts().scheme.is_nonempty(),
+ providers_.template_url_service());
match.contents = navigation.match_contents();
match.contents_class = navigation.match_contents_class();
« components/omnibox/autocomplete_match.h ('K') | « components/omnibox/autocomplete_result.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698