| 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());
|
| if (matches.empty())
|
| return;
|
|
|
|
|