| Index: components/autofill/content/common/autofill_types_struct_traits.h
|
| diff --git a/components/autofill/content/common/autofill_types_struct_traits.h b/components/autofill/content/common/autofill_types_struct_traits.h
|
| index 7d4c03035427ec97cd496d13f90986d53dd14d98..cd58e65b63b56e4344c918898ac29a57e411cf62 100644
|
| --- a/components/autofill/content/common/autofill_types_struct_traits.h
|
| +++ b/components/autofill/content/common/autofill_types_struct_traits.h
|
| @@ -85,6 +85,15 @@ struct EnumTraits<autofill::mojom::PasswordFormFieldPredictionType,
|
| autofill::PasswordFormFieldPredictionType* output);
|
| };
|
|
|
| +template <>
|
| +struct EnumTraits<autofill::mojom::PasswordFormSubmissionEvent,
|
| + autofill::PasswordForm::SubmissionEvent> {
|
| + static autofill::mojom::PasswordFormSubmissionEvent ToMojom(
|
| + autofill::PasswordForm::SubmissionEvent input);
|
| + static bool FromMojom(autofill::mojom::PasswordFormSubmissionEvent input,
|
| + autofill::PasswordForm::SubmissionEvent* output);
|
| +};
|
| +
|
| template <>
|
| struct StructTraits<autofill::mojom::FormFieldDataDataView,
|
| autofill::FormFieldData> {
|
| @@ -497,6 +506,11 @@ struct StructTraits<autofill::mojom::PasswordFormDataView,
|
| return r.does_look_like_signup_form;
|
| }
|
|
|
| + static autofill::PasswordForm::SubmissionEvent submission_event(
|
| + const autofill::PasswordForm& r) {
|
| + return r.submission_event;
|
| + }
|
| +
|
| static bool Read(autofill::mojom::PasswordFormDataView data,
|
| autofill::PasswordForm* out);
|
| };
|
|
|