Index: components/omnibox/browser/search_provider.cc |
diff --git a/components/omnibox/browser/search_provider.cc b/components/omnibox/browser/search_provider.cc |
index b26910c402d44f768d003376794b125ea66adc2e..e4c5c038eb3662d0f50cc691b47644f1c1b21655 100644 |
--- a/components/omnibox/browser/search_provider.cc |
+++ b/components/omnibox/browser/search_provider.cc |
@@ -928,7 +928,9 @@ void SearchProvider::ConvertResultsToAutocompleteMatches() { |
scoped_ptr<SuggestionAnswer> answer; |
for (ACMatches::iterator it = matches_.begin(); it != matches_.end(); |
++it) { |
- if (it->answer && it->fill_into_edit == trimmed_verbatim) { |
+ if (it->answer && |
+ base::i18n::ToLower(it->fill_into_edit) == |
+ base::i18n::ToLower(trimmed_verbatim)) { |
Mark P
2015/12/23 05:28:20
minor nit: consider explicitly creating a trimmed_
Justin Donnelly
2015/12/29 17:24:42
Done.
|
answer_contents = it->answer_contents; |
answer_type = it->answer_type; |
answer = SuggestionAnswer::copy(it->answer.get()); |