Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3534)

Unified Diff: chrome/browser/autocomplete/history_quick_provider.cc

Issue 11757004: Omnibox: Add Mid-Input Matching to HistoryQuick Provider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment change Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698