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

Unified Diff: components/autofill/core/browser/form_structure.h

Issue 2796873002: Sending autofill types for username fields in sign-in forms for improving username detection. (Closed)
Patch Set: Fix compilation error Created 3 years, 8 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/browser/form_structure.h
diff --git a/components/autofill/core/browser/form_structure.h b/components/autofill/core/browser/form_structure.h
index 235d474600ce2db317266430d8a7adcc2262262c..2890f67278c5d410b71cb7c1a4936533a0905817 100644
--- a/components/autofill/core/browser/form_structure.h
+++ b/components/autofill/core/browser/form_structure.h
@@ -226,6 +226,11 @@ class FormStructure {
bool all_fields_are_passwords() const { return all_fields_are_passwords_; }
+ bool is_signin_upload() const { return is_signin_upload_; }
+ void set_is_signin_upload(bool is_signin_upload) {
+ is_signin_upload_ = is_signin_upload;
+ }
+
FormSignature form_signature() const { return form_signature_; }
// Returns a FormData containing the data this form structure knows about.
@@ -325,6 +330,10 @@ class FormStructure {
// True if all form fields are password fields.
bool all_fields_are_passwords_;
+ // True if the form is submitted and has 2 fields: one text and one password
+ // field.
+ bool is_signin_upload_;
+
// The unique signature for this form, composed of the target url domain,
// the form name, and the form field names in a 64-bit hash.
FormSignature form_signature_;
« no previous file with comments | « components/autofill/core/browser/autofill_manager_unittest.cc ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698