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

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

Issue 2055633003: [Password Generation] Sends form classifier vote to autofill server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pg_form_classification
Patch Set: replaced " DCHECK(client_->IsSavingAndFillingEnabledForCurrentPage()) Created 4 years, 6 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/autofill_field.h
diff --git a/components/autofill/core/browser/autofill_field.h b/components/autofill/core/browser/autofill_field.h
index 94f8c9d8defdeb8e2f3db81cec0fd2d688c37437..52137e1af1982b05b8d5f6bce455d15c36eb1334 100644
--- a/components/autofill/core/browser/autofill_field.h
+++ b/components/autofill/core/browser/autofill_field.h
@@ -92,6 +92,15 @@ class AutofillField : public FormFieldData {
return generation_type_;
}
+ void set_form_classifier_outcome(
+ AutofillUploadContents::Field::FormClassifierOutcome outcome) {
+ form_classifier_outcome_ = outcome;
+ }
+ AutofillUploadContents::Field::FormClassifierOutcome form_classifier_outcome()
+ const {
+ return form_classifier_outcome_;
+ }
+
// Set |field_data|'s value to |value|. Uses |field|, |address_language_code|,
// and |app_locale| as hints when filling exceptional cases like phone number
// values and <select> fields. Returns |true| if the field has been filled,
@@ -163,6 +172,9 @@ class AutofillField : public FormFieldData {
// The type of password generation event, if it happened.
AutofillUploadContents::Field::PasswordGenerationType generation_type_;
+ // The outcome of HTML parsing based form classifier.
+ AutofillUploadContents::Field::FormClassifierOutcome form_classifier_outcome_;
+
DISALLOW_COPY_AND_ASSIGN(AutofillField);
};

Powered by Google App Engine
This is Rietveld 408576698