Chromium Code Reviews| 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..7e8ea6a8067c21168b2153c3a36f118d16a21f8c 100644 |
| --- a/components/history/core/browser/history_backend.cc |
| +++ b/components/history/core/browser/history_backend.cc |
| @@ -1054,6 +1054,19 @@ TypedUrlSyncableService* HistoryBackend::GetTypedUrlSyncableService() const { |
| return typed_url_syncable_service_.get(); |
| } |
| +// Statistics ------------------------------------------------------------------ |
| + |
| +HistoryCountResult HistoryBackend::GetHistoryCount() { |
| + HistoryCountResult result; |
| + result.count = 0; |
| + if (!db_) { |
| + result.success = false; |
|
msramek
2015/09/16 11:16:30
Nit: result.success = db_ && db_->GetHistoryCount(
lwchkg
2015/09/16 17:32:34
Sounds good.
|
| + } else { |
| + result.success = db_->GetHistoryCount(&result.count); |
| + } |
| + return result; |
| +} |
| + |
| // Keyword visits -------------------------------------------------------------- |
| void HistoryBackend::SetKeywordSearchTermsForURL(const GURL& url, |