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

Side by Side 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: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698