Index: components/autofill/core/common/form_field_data_predictions.cc |
diff --git a/components/autofill/core/common/form_field_data_predictions.cc b/components/autofill/core/common/form_field_data_predictions.cc |
index e5bdaf9c5282988d2f6cb4d3b27c42575c584bbf..6e06559fd35a4e5eb0fbc30d422f8dcda339f65c 100644 |
--- a/components/autofill/core/common/form_field_data_predictions.cc |
+++ b/components/autofill/core/common/form_field_data_predictions.cc |
@@ -21,4 +21,18 @@ FormFieldDataPredictions::FormFieldDataPredictions( |
FormFieldDataPredictions::~FormFieldDataPredictions() { |
} |
+bool FormFieldDataPredictions::operator==( |
+ const FormFieldDataPredictions& predictions) const { |
+ return (field == predictions.field && |
+ signature == predictions.signature && |
+ heuristic_type == predictions.heuristic_type && |
+ server_type == predictions.server_type && |
+ overall_type == predictions.overall_type); |
+} |
+ |
+bool FormFieldDataPredictions::operator!=( |
+ const FormFieldDataPredictions& predictions) const { |
+ return !operator==(predictions); |
+} |
+ |
} // namespace autofill |