summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/form_field.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autofill/form_field.cc')
-rw-r--r--chrome/browser/autofill/form_field.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/chrome/browser/autofill/form_field.cc b/chrome/browser/autofill/form_field.cc
index e722c5f..b8f941b 100644
--- a/chrome/browser/autofill/form_field.cc
+++ b/chrome/browser/autofill/form_field.cc
@@ -45,10 +45,6 @@ bool IsSelectField(const std::string& type) {
return type == "select-one";
}
-bool IsCheckable(const AutofillField* field) {
- return field->is_checkable;
-}
-
} // namespace
// static
@@ -58,14 +54,6 @@ void FormField::ParseFormFields(const std::vector<AutofillField*>& fields,
std::vector<const AutofillField*> remaining_fields(fields.size());
std::copy(fields.begin(), fields.end(), remaining_fields.begin());
- // Ignore checkable fields as they interfere with parsers assuming context.
- // Eg., while parsing address, "Is PO box" checkbox after ADDRESS_LINE1
- // interferes with correctly understanding ADDRESS_LINE2.
- remaining_fields.erase(
- std::remove_if(remaining_fields.begin(), remaining_fields.end(),
- IsCheckable),
- remaining_fields.end());
-
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
bool parse_new_field_types =
command_line.HasSwitch(switches::kEnableNewAutofillHeuristics);