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

Unified Diff: components/password_manager/core/browser/password_store_default.cc

Issue 2695233004: Implement PasswordStore::GetAllStats (Closed)
Patch Set: Add Mac Implementations Created 3 years, 10 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/password_manager/core/browser/password_store_default.cc
diff --git a/components/password_manager/core/browser/password_store_default.cc b/components/password_manager/core/browser/password_store_default.cc
index e01ab2275457653a2d9d24b2d6a809c7351f8fcd..23debe3534bb66da83a22f263bbe98f01466673d 100644
--- a/components/password_manager/core/browser/password_store_default.cc
+++ b/components/password_manager/core/browser/password_store_default.cc
@@ -205,6 +205,12 @@ void PasswordStoreDefault::RemoveSiteStatsImpl(const GURL& origin_domain) {
login_db_->stats_table().RemoveRow(origin_domain);
}
+std::vector<InteractionsStats> PasswordStoreDefault::GetAllSiteStatsImpl() {
+ DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread());
+ return login_db_ ? login_db_->stats_table().GetAllRows()
+ : std::vector<InteractionsStats>();
+}
+
std::vector<InteractionsStats> PasswordStoreDefault::GetSiteStatsImpl(
const GURL& origin_domain) {
DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698