summaryrefslogtreecommitdiffstats
path: root/components/omnibox/browser/keyword_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/omnibox/browser/keyword_provider.cc')
-rw-r--r--components/omnibox/browser/keyword_provider.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/omnibox/browser/keyword_provider.cc b/components/omnibox/browser/keyword_provider.cc
index b6f7877..8992f02 100644
--- a/components/omnibox/browser/keyword_provider.cc
+++ b/components/omnibox/browser/keyword_provider.cc
@@ -139,7 +139,8 @@ const TemplateURL* KeywordProvider::GetSubstitutingTemplateURLForInput(
// of the original input.
if (input->cursor_position() != base::string16::npos &&
!remaining_input.empty() &&
- base::EndsWith(input->text(), remaining_input, true)) {
+ base::EndsWith(input->text(), remaining_input,
+ base::CompareCase::SENSITIVE)) {
int offset = input->text().length() - input->cursor_position();
// The cursor should never be past the last character or before the
// first character.