Index: components/autofill/core/common/autofill_constants.h |
diff --git a/components/autofill/core/common/autofill_constants.h b/components/autofill/core/common/autofill_constants.h |
index 9c89bddc809dad5c1430d99275022929c320879b..9a1886a92a04e935c77d5bffbe78ce791a43bac3 100644 |
--- a/components/autofill/core/common/autofill_constants.h |
+++ b/components/autofill/core/common/autofill_constants.h |
@@ -25,6 +25,10 @@ const size_t kRequiredFieldsForPredictionRoutines = 3; |
// servers. |
const size_t kRequiredFieldsForUpload = 3; |
+// The minimum number of fields in a form that contains only password fields to |
+// upload the form to and request predictions from the Autofill servers. |
+const size_t kRequiredFieldsForFormsWithOnlyPasswordFields = 2; |
+ |
// Options bitmask values for AutofillHostMsg_ShowPasswordSuggestions IPC |
enum ShowPasswordSuggestionsOptions { |
SHOW_ALL = 1 << 0 /* show all credentials, not just ones matching username */, |