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

Unified Diff: components/omnibox/browser/autocomplete_result.cc

Issue 1855423003: Interpret '?' and Ctrl-K or Ctrl-E as putting omnibox in keyword search mode for Default Search Pro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed forced queries using '?'. Removed Ctrl-K preserving the user's keyword if they're already … Created 4 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/browser/autocomplete_result.cc
diff --git a/components/omnibox/browser/autocomplete_result.cc b/components/omnibox/browser/autocomplete_result.cc
index 9e4bf1d769a98938709b48fcf57250ab96408133..e80761275f6818a80ba7c8b0ff6e99203f5bb085 100644
--- a/components/omnibox/browser/autocomplete_result.cc
+++ b/components/omnibox/browser/autocomplete_result.cc
@@ -257,8 +257,6 @@ void AutocompleteResult::SortAndCull(
if (AutocompleteMatch::IsSearchType(default_match_->type)) {
DCHECK_NE(metrics::OmniboxInputType::URL, input.type()) << debug_info;
} else {
- DCHECK_NE(metrics::OmniboxInputType::FORCED_QUERY, input.type())
- << debug_info;
// If the user explicitly typed a scheme, the default match should
// have the same scheme.
if ((input.type() == metrics::OmniboxInputType::URL) &&

Powered by Google App Engine
This is Rietveld 408576698