diff options
Diffstat (limited to 'components/omnibox/browser/history_provider.cc')
-rw-r--r-- | components/omnibox/browser/history_provider.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/omnibox/browser/history_provider.cc b/components/omnibox/browser/history_provider.cc index 004d542..367d243 100644 --- a/components/omnibox/browser/history_provider.cc +++ b/components/omnibox/browser/history_provider.cc @@ -38,8 +38,7 @@ void HistoryProvider::DeleteMatch(const AutocompleteMatch& match) { bool HistoryProvider::PreventInlineAutocomplete( const AutocompleteInput& input) { return input.prevent_inline_autocomplete() || - (!input.text().empty() && - base::IsUnicodeWhitespace(input.text()[input.text().length() - 1])); + (!input.text().empty() && base::IsUnicodeWhitespace(input.text().back())); } HistoryProvider::HistoryProvider(AutocompleteProvider::Type type, |