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