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

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: Fix kSafeRegexWordBoundary for Korean. 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..136a3af98d75b738ea86423abafcd146f650de18 100644
--- a/chrome/browser/history/history_types.cc
+++ b/chrome/browser/history/history_types.cc
@@ -96,6 +96,11 @@ URLResult::URLResult()
: blocked_visit_(false) {
}
+URLResult::URLResult(const URLRow& url_row)
+ : URLRow(url_row),
+ blocked_visit_(false) {
+}
+
URLResult::URLResult(const GURL& url, base::Time visit_time)
: URLRow(url),
visit_time_(visit_time),
@@ -119,6 +124,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