Chromium Code Reviews| Index: chrome/browser/autocomplete/history_quick_provider.cc |
| diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc |
| index d516b970d7b520386b557962ea4cb66ed94b629f..b26a153e248e095c0abec0f81541fcef885a1ad5 100644 |
| --- a/chrome/browser/autocomplete/history_quick_provider.cc |
| +++ b/chrome/browser/autocomplete/history_quick_provider.cc |
| @@ -163,8 +163,9 @@ HistoryQuickProvider::~HistoryQuickProvider() {} |
| void HistoryQuickProvider::DoAutocomplete() { |
| // Get the matching URLs from the DB. |
| - string16 term_string = autocomplete_input_.text(); |
| - ScoredHistoryMatches matches = GetIndex()->HistoryItemsForTerms(term_string); |
| + ScoredHistoryMatches matches = GetIndex()->HistoryItemsForTerms( |
| + autocomplete_input_.text(), |
| + autocomplete_input_.cursor_position()); |
|
sky
2013/02/06 04:59:43
If the cursor position factors into the results do
Mark P
2013/02/06 17:53:34
Kind of, yes. But we decided that in order to avo
|
| if (matches.empty()) |
| return; |