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

Unified Diff: chrome/browser/password_manager/password_store_mac.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: chrome/browser/password_manager/password_store_mac.cc
diff --git a/chrome/browser/password_manager/password_store_mac.cc b/chrome/browser/password_manager/password_store_mac.cc
index bd6e2048991de66e8336a8faea99f75a62bba299..27c17caba83d2abb72212db2b04d60926424bd88 100644
--- a/chrome/browser/password_manager/password_store_mac.cc
+++ b/chrome/browser/password_manager/password_store_mac.cc
@@ -1301,6 +1301,14 @@ void PasswordStoreMac::RemoveSiteStatsImpl(const GURL& origin_domain) {
}
std::vector<password_manager::InteractionsStats>
+PasswordStoreMac::GetAllSiteStatsImpl() {
+ DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread());
+ return login_metadata_db_
+ ? login_metadata_db_->stats_table().GetAllRows()
+ : std::vector<password_manager::InteractionsStats>();
+}
+
+std::vector<password_manager::InteractionsStats>
PasswordStoreMac::GetSiteStatsImpl(const GURL& origin_domain) {
DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread());
return login_metadata_db_
« no previous file with comments | « chrome/browser/password_manager/password_store_mac.h ('k') | chrome/browser/password_manager/password_store_proxy_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698