Index: webkit/glue/form_field_values.cc |
=================================================================== |
--- webkit/glue/form_field_values.cc (revision 39307) |
+++ webkit/glue/form_field_values.cc (working copy) |
@@ -42,8 +42,11 @@ |
for (size_t i = 0; i < input_elements.size(); i++) { |
const WebInputElement& input_element = input_elements[i]; |
- if (input_element.isEnabledFormControl()) |
- elements.push_back(FormField(input_element)); |
+ if (input_element.isEnabledFormControl()) { |
+ // TODO(jhawkins): Remove this check when we have labels. |
+ if (!input_element.nameForAutofill().isEmpty()) |
+ elements.push_back(FormField(input_element)); |
+ } |
} |
} |