Index: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm |
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm |
index 840de4691a5448a42c11920eca203af5776de4a5..0fa91ec3e4fef6577e4c4391d7b71c22d55b2c15 100644 |
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm |
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm |
@@ -563,8 +563,10 @@ NSAttributedString* CreateClassifiedAttributedString( |
match.GetAdditionalInfo(kACMatchPropertyContentsStartIndex), |
&contentsStartIndex); |
// Ignore invalid state. |
- if (!base::StartsWith(match.fill_into_edit, inputText, true) || |
- !base::EndsWith(match.fill_into_edit, match.contents, true) || |
+ if (!base::StartsWith(match.fill_into_edit, inputText, |
+ base::CompareCase::SENSITIVE) || |
+ !base::EndsWith(match.fill_into_edit, match.contents, |
+ base::CompareCase::SENSITIVE) || |
((size_t)contentsStartIndex >= inputText.length())) { |
return 0; |
} |