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

Unified Diff: chrome/browser/history/url_database.cc

Issue 7314018: Don't autocomplete searches of >1 word if they've only been visited once and the user has not yet... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/history/url_database.cc
===================================================================
--- chrome/browser/history/url_database.cc (revision 92729)
+++ chrome/browser/history/url_database.cc (working copy)
@@ -477,7 +477,7 @@
DCHECK(!prefix.empty());
sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE,
- "SELECT DISTINCT kv.term, u.last_visit_time "
+ "SELECT DISTINCT kv.term, u.visit_count, u.last_visit_time "
"FROM keyword_search_terms kv "
"JOIN urls u ON kv.url_id = u.id "
"WHERE kv.keyword_id = ? AND kv.lower_term >= ? AND kv.lower_term < ? "
@@ -499,7 +499,8 @@
KeywordSearchTermVisit visit;
while (statement.Step()) {
visit.term = statement.ColumnString16(0);
- visit.time = base::Time::FromInternalValue(statement.ColumnInt64(1));
+ visit.visits = statement.ColumnInt(1);
+ visit.time = base::Time::FromInternalValue(statement.ColumnInt64(2));
matches->push_back(visit);
}
}
« chrome/browser/autocomplete/shortcuts_provider.cc ('K') | « chrome/browser/history/history_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698