Chromium Code Reviews| Index: chrome/browser/autofill/autofill_field.h |
| diff --git a/chrome/browser/autofill/autofill_field.h b/chrome/browser/autofill/autofill_field.h |
| index 0b2109852f503d3b04931d57d556bf7077df5055..77ab9e1b97fbe40dc6f6b8ccd45c8b8075bde097 100644 |
| --- a/chrome/browser/autofill/autofill_field.h |
| +++ b/chrome/browser/autofill/autofill_field.h |
| @@ -56,6 +56,9 @@ class AutofillField : public FormFieldData { |
| // field). |
| bool IsFieldFillable() const; |
| + void set_default_value(const std::string& value) { default_value_ = value; } |
| + const std::string& default_value() const { return default_value_; } |
| + |
| private: |
| // The unique name of this field, generated by Autofill. |
| string16 unique_name_; |
| @@ -76,6 +79,9 @@ class AutofillField : public FormFieldData { |
| // Used to track whether this field is a phone prefix or suffix. |
| PhonePart phone_part_; |
| + // Used to park the default value returned by the autofill server. |
|
Ilya Sherman
2012/12/01 00:54:12
nit: "autofill" -> "Autofill"
Raman Kakilate
2012/12/06 01:54:05
Done.
|
| + std::string default_value_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(AutofillField); |
| }; |