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

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: Created 7 years, 12 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 3d0e07e17a6aa934bfe1bed33f3744c9d641bee3..b3afeabbfe66a337cedce507955c5b3e9da3200d 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;
« no previous file with comments | « no previous file | chrome/browser/history/in_memory_url_index.h » ('j') | chrome/browser/history/in_memory_url_index.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698