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

Unified Diff: components/autofill/core/common/save_password_progress_logger.cc

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/autofill/core/common/save_password_progress_logger.cc
diff --git a/components/autofill/core/common/save_password_progress_logger.cc b/components/autofill/core/common/save_password_progress_logger.cc
index 5fecf7041b1bc32822a950881a235af026a13e9c..30c23d98661cb20840200189dd6c67c511fccf40 100644
--- a/components/autofill/core/common/save_password_progress_logger.cc
+++ b/components/autofill/core/common/save_password_progress_logger.cc
@@ -171,6 +171,11 @@ std::string GetStringFromID(SavePasswordProgressLogger::StringID id) {
return "wait_for_username";
case SavePasswordProgressLogger::STRING_LOGINMODELOBSERVER_PRESENT:
return "Instances of LoginModelObserver may be present";
+ case
+ SavePasswordProgressLogger::STRING_WAS_LAST_NAVIGATION_HTTP_ERROR_METHOD:
+ return "ChromePasswordManagerClient::WasLastNavigationHTTPError";
+ case SavePasswordProgressLogger::STRING_HTTP_STATUS_CODE:
+ return "HTTP status code for landing page";
case SavePasswordProgressLogger::STRING_INVALID:
return "INVALID";
// Intentionally no default: clause here -- all IDs need to get covered.

Powered by Google App Engine
This is Rietveld 408576698