Index: components/password_manager/core/browser/password_manager_client.h |
diff --git a/components/password_manager/core/browser/password_manager_client.h b/components/password_manager/core/browser/password_manager_client.h |
index ef9c8b0f8d19a4447fed86a57a38610750c5e516..9f9c3687ac8bdb98816bb8382295a544f35fbb65 100644 |
--- a/components/password_manager/core/browser/password_manager_client.h |
+++ b/components/password_manager/core/browser/password_manager_client.h |
@@ -25,6 +25,12 @@ class PasswordManagerClient { |
PasswordManagerClient() {} |
virtual ~PasswordManagerClient() {} |
+ // For automated testing, the save password prompt should sometimes not be |
+ // shown, and password immediately saved instead. That can be enforced by |
+ // a command-line flag. If auto-saving is enforced, this method returns true. |
+ // The default return value is false. |
+ virtual bool IsAutomaticPasswordSavingEnabled() const; |
+ |
// Informs the embedder of a password form that can be saved if the user |
// allows it. The embedder is not required to prompt the user if it decides |
// that this form doesn't need to be saved. |