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

Unified Diff: components/password_manager/core/browser/password_manager_client.h

Issue 256003003: Enable Automatic Passwords Saving (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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.

Powered by Google App Engine
This is Rietveld 408576698