summaryrefslogtreecommitdiffstats
path: root/webkit/glue/form_field.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-05 22:01:04 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-05 22:01:04 +0000
commitb715f7fea3d0a39e36b860a62010b89f1d6a1b12 (patch)
tree77dd1a6217e35cf44eb3b9c7fbda62bb48640edf /webkit/glue/form_field.cc
parentde56fa14154a5b7f263b75e55763f01c64e2d35e (diff)
downloadchromium_src-b715f7fea3d0a39e36b860a62010b89f1d6a1b12.zip
chromium_src-b715f7fea3d0a39e36b860a62010b89f1d6a1b12.tar.gz
chromium_src-b715f7fea3d0a39e36b860a62010b89f1d6a1b12.tar.bz2
AutoFill: Implement WebFormElementToFormData and use this to send form data to
the AutoFillManager. Don't check field labels for equality until we parse labels again. BUG=40297 TEST=FormManagerTest.WebFormElementToFormData Review URL: http://codereview.chromium.org/1609007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43657 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_field.cc')
-rw-r--r--webkit/glue/form_field.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/glue/form_field.cc b/webkit/glue/form_field.cc
index a82283a..cddd538 100644
--- a/webkit/glue/form_field.cc
+++ b/webkit/glue/form_field.cc
@@ -53,8 +53,9 @@ FormField::FormField(const string16& label,
bool FormField::operator==(const FormField& field) const {
// A FormField stores a value, but the value is not part of the identity of
// the field, so we don't want to compare the values.
- return (label_ == field.label_ &&
- name_ == field.name_ &&
+ // TODO(jhawkins): Re-enable checking the field label for == once we parse
+ // labels again.
+ return (name_ == field.name_ &&
form_control_type_ == field.form_control_type_);
}