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

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

Issue 2913323004: Implementation of sync password hash clearing. (Closed)
Patch Set: addressed reviewer's comments Created 3 years, 7 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.cc
diff --git a/components/password_manager/core/browser/password_store.cc b/components/password_manager/core/browser/password_store.cc
index 0575e5de99af3b02d486eb3bd97917d064ffcbaa..8b077e2e5431212d32c1a9c946c4176ac0c63c4e 100644
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -332,6 +332,10 @@ void PasswordStore::SaveSyncPasswordHash(const base::string16& password) {
ScheduleTask(
base::Bind(&PasswordStore::SaveSyncPasswordHashImpl, this, password));
}
+
+void PasswordStore::ClearSyncPasswordHash() {
+ ScheduleTask(base::Bind(&PasswordStore::ClearSyncPasswordHashImpl, this));
+}
#endif
PasswordStore::~PasswordStore() {
@@ -419,6 +423,11 @@ void PasswordStore::SaveSyncPasswordHashImpl(const base::string16& password) {
if (reuse_detector_)
reuse_detector_->SaveSyncPasswordHash(password);
}
+
+void PasswordStore::ClearSyncPasswordHashImpl() {
+ if (reuse_detector_)
+ reuse_detector_->ClearSyncPasswordHash();
+}
#endif
void PasswordStore::Schedule(

Powered by Google App Engine
This is Rietveld 408576698