| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/autofill/core/common/form_data_predictions.h" | 5 #include "components/autofill/core/common/form_data_predictions.h" |
| 6 | 6 |
| 7 namespace autofill { | 7 namespace autofill { |
| 8 | 8 |
| 9 FormDataPredictions::FormDataPredictions() { | 9 FormDataPredictions::FormDataPredictions() { |
| 10 } | 10 } |
| 11 | 11 |
| 12 FormDataPredictions::FormDataPredictions(const FormDataPredictions& other) | 12 FormDataPredictions::FormDataPredictions(const FormDataPredictions& other) |
| 13 : data(other.data), | 13 : data(other.data), |
| 14 signature(other.signature), | 14 signature(other.signature), |
| 15 experiment_id(other.experiment_id), | 15 experiment_id(other.experiment_id), |
| 16 fields(other.fields) { | 16 fields(other.fields) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 FormDataPredictions::~FormDataPredictions() { | 19 FormDataPredictions::~FormDataPredictions() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 bool FormDataPredictions::operator==( |
| 23 const FormDataPredictions& predictions) const { |
| 24 return (data == predictions.data && |
| 25 signature == predictions.signature && |
| 26 experiment_id == predictions.experiment_id && |
| 27 fields == predictions.fields); |
| 28 } |
| 29 |
| 30 bool FormDataPredictions::operator!=( |
| 31 const FormDataPredictions& predictions) const { |
| 32 return !operator==(predictions); |
| 33 } |
| 34 |
| 22 } // namespace autofill | 35 } // namespace autofill |
| OLD | NEW |