diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 00:50:21 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 00:50:21 +0000 |
commit | 3313382ec12352d9c7f2458cd293ed9f901aa38f (patch) | |
tree | 6608b2dee9000b2de94eda819d6cec359c9301cd /webkit/glue/form_data.h | |
parent | 4f4cdd77f20dc52f349b075d2390d3df33be6f9d (diff) | |
download | chromium_src-3313382ec12352d9c7f2458cd293ed9f901aa38f.zip chromium_src-3313382ec12352d9c7f2458cd293ed9f901aa38f.tar.gz chromium_src-3313382ec12352d9c7f2458cd293ed9f901aa38f.tar.bz2 |
AutoFill: Add a default constructor for FormData. There are too many places
that create FormDatas, and we shouldn't need to initialize user_submitted for
each call site.
BUG=50423
TEST=none
Review URL: http://codereview.chromium.org/3074023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54641 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_data.h')
-rw-r--r-- | webkit/glue/form_data.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/glue/form_data.h b/webkit/glue/form_data.h index 7332cd9..1556f24 100644 --- a/webkit/glue/form_data.h +++ b/webkit/glue/form_data.h @@ -28,6 +28,8 @@ struct FormData { // A vector of all the input fields in the form. std::vector<FormField> fields; + FormData() : user_submitted(false) {} + // Used by FormStructureTest. inline bool operator==(const FormData& form) const { return (name == form.name && |