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

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

Issue 18563002: Move SendAutofillTypePredictions() into AutofillDriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review 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_data_predictions.cc
diff --git a/components/autofill/core/common/form_data_predictions.cc b/components/autofill/core/common/form_data_predictions.cc
index 15e30c00a8cd001b087afe9255044ce07b454bd3..8375c3066c9684eb7953001e4346c214f670250c 100644
--- a/components/autofill/core/common/form_data_predictions.cc
+++ b/components/autofill/core/common/form_data_predictions.cc
@@ -19,4 +19,17 @@ FormDataPredictions::FormDataPredictions(const FormDataPredictions& other)
FormDataPredictions::~FormDataPredictions() {
}
+bool FormDataPredictions::operator==(
+ const FormDataPredictions& predictions) const {
+ return (data == predictions.data &&
+ signature == predictions.signature &&
+ experiment_id == predictions.experiment_id &&
+ fields == predictions.fields);
+}
+
+bool FormDataPredictions::operator!=(
+ const FormDataPredictions& predictions) const {
+ return !operator==(predictions);
+}
+
} // namespace autofill
« no previous file with comments | « components/autofill/core/common/form_data_predictions.h ('k') | components/autofill/core/common/form_field_data_predictions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698