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

Unified Diff: chrome/browser/history/scored_history_match.h

Issue 10837244: Replace HistoryQuickProvider protobuf-based caching with an SQLite-based database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Tweak suppression. Created 8 years, 4 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/scored_history_match.h
===================================================================
--- chrome/browser/history/scored_history_match.h (revision 151481)
+++ chrome/browser/history/scored_history_match.h (working copy)
@@ -22,14 +22,11 @@
ScoredHistoryMatch(); // Required by STL.
// Creates a new match with a raw score calculated for the history item given
- // in |row| by first determining if all of the terms in |terms_vector| occur
- // in |row| and, if so, calculating a raw score based on 1) starting position
- // of each term in the user input, 2) completeness of each term's match,
- // 3) ordering of the occurrence of each term (i.e. they appear in order),
- // 4) last visit time (compared to |now|), and 5) number of visits.
- // This raw score allows the results to be ordered and can be used
- // to influence the final score calculated by the client of this
- // index.
+ // in |row|. First determines if the row qualifies by seeing if all of the
+ // terms in |terms_vector| occur in |row|. If so, calculates a raw score.
+ // This raw score allows the results to be ordered and can be used to
+ // influence the final score calculated by the client of this index.
+ // If the row does not qualify the raw score will be 0.
ScoredHistoryMatch(const URLRow& row,
const string16& lower_string,
const String16Vector& terms_vector,

Powered by Google App Engine
This is Rietveld 408576698