| OLD | NEW |
| 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/core/browser/webdata/autofill_change.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/autofill/browser/autofill_profile.h" | 8 #include "components/autofill/core/browser/autofill_profile.h" |
| 9 #include "components/autofill/browser/credit_card.h" | 9 #include "components/autofill/core/browser/credit_card.h" |
| 10 | 10 |
| 11 namespace autofill { | 11 namespace autofill { |
| 12 | 12 |
| 13 AutofillChange::AutofillChange(Type type, const AutofillKey& key) | 13 AutofillChange::AutofillChange(Type type, const AutofillKey& key) |
| 14 : GenericAutofillChange<AutofillKey>(type, key) { | 14 : GenericAutofillChange<AutofillKey>(type, key) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 AutofillChange::~AutofillChange() { | 17 AutofillChange::~AutofillChange() { |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 bool AutofillProfileChange::operator==( | 32 bool AutofillProfileChange::operator==( |
| 33 const AutofillProfileChange& change) const { | 33 const AutofillProfileChange& change) const { |
| 34 return type() == change.type() && | 34 return type() == change.type() && |
| 35 key() == change.key() && | 35 key() == change.key() && |
| 36 (type() != REMOVE) ? *profile() == *change.profile() : true; | 36 (type() != REMOVE) ? *profile() == *change.profile() : true; |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace autofill | 39 } // namespace autofill |
| OLD | NEW |