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

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

Issue 1031153002: [Credential Management] Smart lock save Credentials bubble should not always pop up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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_dispatcher.cc
diff --git a/components/password_manager/content/browser/credential_manager_dispatcher.cc b/components/password_manager/content/browser/credential_manager_dispatcher.cc
index 6a2b3a5662f23d0ae003115dcff193fe37211209..1716db7e3bb6245c6df33d78610b25d2f58b21ec 100644
--- a/components/password_manager/content/browser/credential_manager_dispatcher.cc
+++ b/components/password_manager/content/browser/credential_manager_dispatcher.cc
@@ -236,8 +236,10 @@ void CredentialManagerDispatcher::OnNotifySignedIn(
void CredentialManagerDispatcher::OnProvisionalSaveComplete() {
DCHECK(form_manager_);
- client_->PromptUserToSavePassword(
- form_manager_.Pass(), CredentialSourceType::CREDENTIAL_SOURCE_API);
+ if (client_->IsEnabledForCurrentPage() && !form_manager_->IsBlacklisted()) {
+ client_->PromptUserToSavePassword(
+ form_manager_.Pass(), CredentialSourceType::CREDENTIAL_SOURCE_API);
+ }
}
void CredentialManagerDispatcher::OnNotifySignedOut(int request_id) {

Powered by Google App Engine
This is Rietveld 408576698