Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Unified Diff: components/autofill/core/common/form_field_data.cc

Issue 2745803003: autofill-try
Patch Set: autofill-try Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/core/common/form_field_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48796627fa921551786ce81afd2f90ba6c647fbc..89c35362ef71e77c7dc408349722c583ab266399 100644
--- a/components/autofill/core/common/form_field_data.cc
+++ b/components/autofill/core/common/form_field_data.cc
@@ -159,6 +159,12 @@ bool FormFieldData::SameFieldAs(const FormFieldData& field) const {
// should not be considered changes in the structure of the form.
}
+bool FormFieldData::SimilarFieldAs(const FormFieldData& field) const {
+ return label == field.label && name == field.name && id == field.id &&
+ form_control_type == field.form_control_type &&
+ IsCheckable(check_status) == IsCheckable(field.check_status);
+}
+
bool FormFieldData::operator==(const FormFieldData& field) const {
return SameFieldAs(field) && is_autofilled == field.is_autofilled &&
check_status == field.check_status &&
« no previous file with comments | « components/autofill/core/common/form_field_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698