Index: components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc |
diff --git a/components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc b/components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc |
index 5a72dafe7740cdd598b7b797b921ab0e71776f43..05dc714e3f7b9bc34acfd9744425d81c55056929 100644 |
--- a/components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc |
+++ b/components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc |
@@ -342,7 +342,10 @@ TEST_F(PasswordFormConversionUtilsTest, IdentifyingThreePasswordFields) { |
{{"alpha", "", ""}, "password1", "alpha", "password2", ""}, |
{{"", "beta", "beta"}, "password1", "", "password2", "beta"}, |
{{"alpha", "beta", "beta"}, "password1", "alpha", "password2", "beta"}, |
- {{"beta", "beta", "alpha"}, "password3", "alpha", "password1", "beta"}, |
+ // If confirmed password comes first, assume that the third password |
+ // field is related to security question, SSN, or credit card and ignore |
+ // it. |
+ {{"beta", "beta", "alpha"}, "", "", "password1", "beta"}, |
// If the fields are yet empty, we speculate that we will identify them as |
// (current + new + new) once they are filled out, so we should classify |
// them the same for now to keep our abstract interpretation less flaky. |