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: components/password_manager/core/browser/password_store.cc

Issue 2846823002: Interface for sync password saving. (Closed)
Patch Set: comments fixes Created 3 years, 8 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
« no previous file with comments | « components/password_manager/core/browser/password_store.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3597674b5bad6fcb8f58407aba9c87b26fe3c882..ba13db6e1121e35484621a23ad392f9bf34ff8ab 100644
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -317,6 +317,11 @@ void PasswordStore::CheckReuse(const base::string16& input,
ScheduleTask(base::Bind(&PasswordStore::CheckReuseImpl, this,
base::Passed(&check_reuse_request), input, domain));
}
+
+void PasswordStore::SaveSyncPasswordHash(const base::string16& password) {
+ ScheduleTask(
+ base::Bind(&PasswordStore::SaveSyncPasswordHashImpl, this, password));
+}
#endif
PasswordStore::~PasswordStore() {
@@ -399,6 +404,11 @@ void PasswordStore::CheckReuseImpl(std::unique_ptr<CheckReuseRequest> request,
if (reuse_detector_)
reuse_detector_->CheckReuse(input, domain, request.get());
}
+
+void PasswordStore::SaveSyncPasswordHashImpl(const base::string16& password) {
+ if (reuse_detector_)
+ reuse_detector_->SaveSyncPasswordHash(password);
+}
#endif
void PasswordStore::Schedule(
« no previous file with comments | « components/password_manager/core/browser/password_store.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698