| Index: components/autofill/core/common/form_field_data.cc
|
| diff --git a/components/autofill/core/common/form_field_data.cc b/components/autofill/core/common/form_field_data.cc
|
| index 54db610c7b549eddee2eaa9f717e83b4677d52af..1ae34468eb39fe9399852ca1c55aa835b28acb5f 100644
|
| --- a/components/autofill/core/common/form_field_data.cc
|
| +++ b/components/autofill/core/common/form_field_data.cc
|
| @@ -3,8 +3,6 @@
|
| // found in the LICENSE file.
|
|
|
| #include "components/autofill/core/common/form_field_data.h"
|
| -
|
| -#include <tuple>
|
|
|
| #include "base/pickle.h"
|
| #include "base/strings/string_util.h"
|
| @@ -119,15 +117,29 @@
|
|
|
| bool FormFieldData::operator<(const FormFieldData& field) const {
|
| // Like operator==, this ignores the value.
|
| + if (label < field.label) return true;
|
| + if (label > field.label) return false;
|
| + if (name < field.name) return true;
|
| + if (name > field.name) return false;
|
| + if (form_control_type < field.form_control_type) return true;
|
| + if (form_control_type > field.form_control_type) return false;
|
| + if (autocomplete_attribute < field.autocomplete_attribute) return true;
|
| + if (autocomplete_attribute > field.autocomplete_attribute) return false;
|
| + if (max_length < field.max_length) return true;
|
| + if (max_length > field.max_length) return false;
|
| // Skip |is_checked| and |is_autofilled| as in SameFieldAs.
|
| + if (is_checkable < field.is_checkable) return true;
|
| + if (is_checkable > field.is_checkable) return false;
|
| + if (is_focusable < field.is_focusable) return true;
|
| + if (is_focusable > field.is_focusable) return false;
|
| + if (should_autocomplete < field.should_autocomplete) return true;
|
| + if (should_autocomplete > field.should_autocomplete) return false;
|
| + if (role < field.role) return true;
|
| + if (role > field.role) return false;
|
| + if (text_direction < field.text_direction) return true;
|
| + if (text_direction > field.text_direction) return false;
|
| // See operator== above for why we don't check option_values/contents.
|
| - return std::tie(label, name, form_control_type, autocomplete_attribute,
|
| - max_length, is_checkable, is_focusable, should_autocomplete,
|
| - role, text_direction) <
|
| - std::tie(field.label, field.name, field.form_control_type,
|
| - field.autocomplete_attribute, field.max_length,
|
| - field.is_checkable, field.is_focusable,
|
| - field.should_autocomplete, field.role, field.text_direction);
|
| + return false;
|
| }
|
|
|
| void SerializeFormFieldData(const FormFieldData& field_data,
|
|
|