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

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

Issue 16776004: Replace FTS in the history_service with a brute force text search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Brett's comments. Created 7 years, 6 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/history_types.cc
diff --git a/chrome/browser/history/history_types.cc b/chrome/browser/history/history_types.cc
index 09fed813fffcb57ded6a624f4aa240cc4394ba3a..19521fae3fe61eb086cd7b6275fafdbb7da9fece 100644
--- a/chrome/browser/history/history_types.cc
+++ b/chrome/browser/history/history_types.cc
@@ -107,6 +107,10 @@ URLResult::URLResult(const GURL& url,
: URLRow(url) {
title_match_positions_ = title_matches;
}
+URLResult::URLResult(const URLRow& url_row)
+ : URLRow(url_row),
+ blocked_visit_(false) {
+}
URLResult::~URLResult() {
}
@@ -119,6 +123,11 @@ void URLResult::SwapResult(URLResult* other) {
std::swap(blocked_visit_, other->blocked_visit_);
}
+// static
+bool URLResult::CompareVisitTime(const URLResult& lhs, const URLResult& rhs) {
+ return lhs.visit_time() > rhs.visit_time();
+}
+
// QueryResults ----------------------------------------------------------------
QueryResults::QueryResults() : reached_beginning_(false) {

Powered by Google App Engine
This is Rietveld 408576698