Chromium Code Reviews| 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 d869ab86c536f17632f2477d4ca82d82d62fddda..7ac180b8c965bc4aabd6d1c8baeaf8679c2057e7 100644 |
| --- a/components/autofill/core/browser/autofill_field.h |
| +++ b/components/autofill/core/browser/autofill_field.h |
| @@ -82,6 +82,11 @@ class AutofillField : public FormFieldData { |
| return credit_card_number_offset_; |
| } |
| + void set_generation_type(PasswordGenerationType type) { |
| + generation_type_ = type; |
| + } |
| + PasswordGenerationType generation_type() const { return generation_type_; } |
| + |
| // 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, |
| @@ -148,6 +153,9 @@ class AutofillField : public FormFieldData { |
| // parsing. |
| base::string16 parseable_name_; |
| + // The type of password generation event, if it happened. |
| + PasswordGenerationType generation_type_; |
|
Mathieu
2016/02/22 13:25:20
This should be of type AutofillUploadContents::Fie
dvadym
2016/02/22 14:52:32
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(AutofillField); |
| }; |