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

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

Issue 344033008: [Password Manager] Disable saving and filling on sync signup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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.h
diff --git a/components/password_manager/core/browser/password_manager.h b/components/password_manager/core/browser/password_manager.h
index 45a7f93fa47ac6c34420636852c080608e5f69fc..62471d7f972ea34e2a685a1c3dc5b6ff16780d45 100644
--- a/components/password_manager/core/browser/password_manager.h
+++ b/components/password_manager/core/browser/password_manager.h
@@ -116,6 +116,11 @@ class PasswordManager : public LoginModel {
MAX_FAILURE_VALUE
};
+ // Returns if the password manager is enabled for this page. There are certain
+ // situations (e.g. bad SSL cert) where we disable the password manager
+ // temporarily.
+ bool IsEnabledForCurrentPage() const;
+
// Log failure for UMA. Logs additional metrics if the |form_origin|
// corresponds to one of the top, explicitly monitored websites. For some
// values of |failure| also sends logs to the internals page through |logger|,

Powered by Google App Engine
This is Rietveld 408576698