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 adafb2d838f94f629382c9a8ea3cd8c5f4cdfb11..f5f024503a6c1d7bc59dadb808fc8ab05080820c 100644 |
--- a/components/password_manager/core/browser/password_manager.h |
+++ b/components/password_manager/core/browser/password_manager.h |
@@ -115,6 +115,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|, |