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

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: revise test cases to be correct 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/search_provider.cc
diff --git a/components/omnibox/search_provider.cc b/components/omnibox/search_provider.cc
index 2b904b67bb3ce0155c2d13cfb70d675d7eb836d0..07488998278927b118f972e2f42f76dc17215b97 100644
--- a/components/omnibox/search_provider.cc
+++ b/components/omnibox/search_provider.cc
@@ -1438,7 +1438,7 @@ AutocompleteMatch SearchProvider::NavigationToMatch(
!navigation.received_after_last_keystroke() &&
(match.inline_autocompletion.empty() ||
(!input_.prevent_inline_autocomplete() && !trimmed_whitespace));
- match.EnsureUWYTIsAllowedToBeDefault(input_.canonicalized_url(),
+ match.EnsureUWYTIsAllowedToBeDefault(input_,
client()->GetTemplateURLService());
match.contents = navigation.match_contents();

Powered by Google App Engine
This is Rietveld 408576698