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

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

Issue 18563002: Move SendAutofillTypePredictions() into AutofillDriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
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

Powered by Google App Engine
This is Rietveld 408576698