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

Unified Diff: components/password_manager/content/browser/credential_manager_impl.cc

Issue 1962713002: Kill the autofill password manager in case 'store()' was called. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/content/browser/credential_manager_impl.cc
diff --git a/components/password_manager/content/browser/credential_manager_impl.cc b/components/password_manager/content/browser/credential_manager_impl.cc
index c69d46aa95757080578b4a3e9647e35ff4648e41..46df09d1b2d4335d2b20d0927566a21aad0db790 100644
--- a/components/password_manager/content/browser/credential_manager_impl.cc
+++ b/components/password_manager/content/browser/credential_manager_impl.cc
@@ -61,6 +61,8 @@ void CredentialManagerImpl::Store(mojom::CredentialInfoPtr credential,
if (!client_->IsSavingAndFillingEnabledForCurrentPage())
return;
+ client_->NotifyStorePasswordCalled();
+
GURL origin = web_contents()->GetLastCommittedURL().GetOrigin();
std::unique_ptr<autofill::PasswordForm> form(
CreatePasswordFormFromCredentialInfo(info, origin));

Powered by Google App Engine
This is Rietveld 408576698