Index: components/history/core/browser/history_backend.cc |
diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc |
index 8e4cfaaf74944b0e1a3ca9a134fba7ddd0b29c35..33dc9c68125d96e5f30cf209c14d2306642bb4e4 100644 |
--- a/components/history/core/browser/history_backend.cc |
+++ b/components/history/core/browser/history_backend.cc |
@@ -1054,6 +1054,20 @@ TypedUrlSyncableService* HistoryBackend::GetTypedUrlSyncableService() const { |
return typed_url_syncable_service_.get(); |
} |
+// Statistics ------------------------------------------------------------------ |
+ |
+HistoryCountResult HistoryBackend::GetHistoryCount() { |
+ HistoryCountResult result; |
+ if (!db_) { |
+ result.success = false; |
+ result.count = 0; |
+ } else { |
+ result.success = true; |
+ result.count = db_->GetHistoryCount(); |
+ } |
+ return result; |
+} |
+ |
// Keyword visits -------------------------------------------------------------- |
void HistoryBackend::SetKeywordSearchTermsForURL(const GURL& url, |