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..78110edb2b7a357c5f7635fdade764ebcbf4c50e 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_; |
| } |
| + PasswordGenerationEvent generation_event() const { return generation_event_; } |
|
vabr (Chromium)
2016/02/17 13:43:22
nit: All the other getter-setter pairs have the or
dvadym
2016/02/19 16:25:05
Done.
|
| + void set_generation_event(PasswordGenerationEvent event) { |
| + generation_event_ = event; |
| + } |
| + |
| // 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. |
| + PasswordGenerationEvent generation_event_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(AutofillField); |
| }; |