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

Unified Diff: components/autofill/core/common/autofill_constants.h

Issue 1670763006: Autofill server-side heuristics for 2 fields password form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 10 months 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/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 */,

Powered by Google App Engine
This is Rietveld 408576698