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
3 // found in the LICENSE file.
5 #include "components/autofill/core/common/form_data_predictions.h"
9 FormDataPredictions::FormDataPredictions() {
12 FormDataPredictions::FormDataPredictions(const FormDataPredictions
& other
)
14 signature(other
.signature
),
15 experiment_id(other
.experiment_id
),
16 fields(other
.fields
) {
19 FormDataPredictions::~FormDataPredictions() {
22 bool FormDataPredictions::operator==(
23 const FormDataPredictions
& predictions
) const {
24 return (data
.SameFormAs(predictions
.data
) &&
25 signature
== predictions
.signature
&&
26 experiment_id
== predictions
.experiment_id
&&
27 fields
== predictions
.fields
);
30 bool FormDataPredictions::operator!=(
31 const FormDataPredictions
& predictions
) const {
32 return !operator==(predictions
);
35 } // namespace autofill