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

Unified Diff: components/omnibox/autocomplete_match.cc

Issue 1154063003: removing ShouldHideTopMatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review changes Created 5 years, 7 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/autocomplete_match.cc
diff --git a/components/omnibox/autocomplete_match.cc b/components/omnibox/autocomplete_match.cc
index 8bd091745b8ebf50fe4f9c7e7f8575776c44b157..40466902e8ae4152cfc45d0868f9f962204dcdaa 100644
--- a/components/omnibox/autocomplete_match.cc
+++ b/components/omnibox/autocomplete_match.cc
@@ -506,16 +506,6 @@ std::string AutocompleteMatch::GetAdditionalInfo(
return (i == additional_info.end()) ? std::string() : i->second;
}
-bool AutocompleteMatch::IsVerbatimType() const {
- const bool is_keyword_verbatim_match =
- (type == AutocompleteMatchType::SEARCH_OTHER_ENGINE &&
- provider != NULL &&
- provider->type() == AutocompleteProvider::TYPE_SEARCH);
- return type == AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED ||
- type == AutocompleteMatchType::URL_WHAT_YOU_TYPED ||
- is_keyword_verbatim_match;
-}
-
bool AutocompleteMatch::SupportsDeletion() const {
if (deletable)
return true;

Powered by Google App Engine
This is Rietveld 408576698