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

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

Issue 733953002: Do not save passwords if the landing page has HTTP status 5xx or 4xx (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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 4bef91fb3fd4e2911b55e53ad4cb70f30e2b86b5..d2cf54a420d326627f5b02458751a410f7f95117 100644
--- a/components/password_manager/core/browser/password_manager_client.h
+++ b/components/password_manager/core/browser/password_manager_client.h
@@ -114,6 +114,9 @@ class PasswordManagerClient {
// displayed, and false otherwise.
virtual bool IsLoggingActive() const;
+ // Returns true if last navigation page had HTTP error i.e 5XX or 4XX
+ virtual bool WasLastNavigationHTTPError() const;
+
// Returns the authorization prompt policy to be used with the given form.
// Only relevant on OSX.
virtual PasswordStore::AuthorizationPromptPolicy GetAuthorizationPromptPolicy(

Powered by Google App Engine
This is Rietveld 408576698