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 d6dcb62c17e9c73e8342a5fb92200c03a1c32f0f..e12c90cccccc147261a9d35021ec88c9ce8882f8 100644 |
| --- a/components/history/core/browser/history_backend.cc |
| +++ b/components/history/core/browser/history_backend.cc |
| @@ -1054,6 +1054,15 @@ TypedUrlSyncableService* HistoryBackend::GetTypedUrlSyncableService() const { |
| return typed_url_syncable_service_.get(); |
| } |
| +// Statistics ------------------------------------------------------------------ |
| + |
| +int HistoryBackend::CountURLs() { |
| + if (!db_) |
|
lwchkg
2015/08/11 15:54:51
Also suggest to rename to GetHistoryCount.
Mike:
Mike Lerman
2015/08/13 14:56:33
GetHistoryCount or GetCountHistoryEntries sound go
|
| + return 0; |
| + else |
| + return db_->GetCountOfURLsWithVisibleVisit(); |
| +} |
| + |
| // Keyword visits -------------------------------------------------------------- |
| void HistoryBackend::SetKeywordSearchTermsForURL(const GURL& url, |