summaryrefslogtreecommitdiffstats
path: root/components/omnibox/browser/search_suggestion_parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/omnibox/browser/search_suggestion_parser.cc')
-rw-r--r--components/omnibox/browser/search_suggestion_parser.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/omnibox/browser/search_suggestion_parser.cc b/components/omnibox/browser/search_suggestion_parser.cc
index 11fbdbb..30543fc 100644
--- a/components/omnibox/browser/search_suggestion_parser.cc
+++ b/components/omnibox/browser/search_suggestion_parser.cc
@@ -151,7 +151,8 @@ void SearchSuggestionParser::SuggestResult::ClassifyMatchContents(
// contents, and the input text has an overlap with contents.
if (base::StartsWith(suggestion_, input_text,
base::CompareCase::SENSITIVE) &&
- base::EndsWith(suggestion_, match_contents_, true) &&
+ base::EndsWith(suggestion_, match_contents_,
+ base::CompareCase::SENSITIVE) &&
(input_text.length() > contents_index)) {
lookup_text = input_text.substr(contents_index);
}