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

Side by Side Diff: components/autofill/browser/webdata/autofill_change.cc

Issue 14096009: [Autofill] Split off AutofillDataModel as a subclass of FormData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android compile Created 7 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/webdata/autofill_change.h" 5 #include "components/autofill/browser/webdata/autofill_change.h"
6 6
7 #include "base/logging.h"
7 #include "components/autofill/browser/autofill_profile.h" 8 #include "components/autofill/browser/autofill_profile.h"
8 #include "components/autofill/browser/credit_card.h" 9 #include "components/autofill/browser/credit_card.h"
9 10
10 namespace autofill { 11 namespace autofill {
11 12
12 AutofillChange::AutofillChange(Type type, const AutofillKey& key) 13 AutofillChange::AutofillChange(Type type, const AutofillKey& key)
13 : GenericAutofillChange<AutofillKey>(type, key) { 14 : GenericAutofillChange<AutofillKey>(type, key) {
14 } 15 }
15 16
16 AutofillChange::~AutofillChange() { 17 AutofillChange::~AutofillChange() {
(...skipping 12 matching lines...) Expand all
29 } 30 }
30 31
31 bool AutofillProfileChange::operator==( 32 bool AutofillProfileChange::operator==(
32 const AutofillProfileChange& change) const { 33 const AutofillProfileChange& change) const {
33 return type() == change.type() && 34 return type() == change.type() &&
34 key() == change.key() && 35 key() == change.key() &&
35 (type() != REMOVE) ? *profile() == *change.profile() : true; 36 (type() != REMOVE) ? *profile() == *change.profile() : true;
36 } 37 }
37 38
38 } // namespace autofill 39 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/browser/wallet/wallet_address.cc ('k') | components/autofill/browser/webdata/autofill_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698