Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: components/history/core/browser/history_backend.cc

Issue 1248613003: Issue 501916 : Add data type counts to profile deletion flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Seventh draft Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698