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) { |