| 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 "chrome/browser/webdata/autofill_change.h" | 5 #include "chrome/browser/webdata/autofill_change.h" |
| 6 | 6 |
| 7 #include "chrome/browser/autofill/autofill_profile.h" | 7 #include "components/autofill/browser/autofill_profile.h" |
| 8 #include "chrome/browser/autofill/credit_card.h" | 8 #include "components/autofill/browser/credit_card.h" |
| 9 | 9 |
| 10 AutofillChange::AutofillChange(Type type, const AutofillKey& key) | 10 AutofillChange::AutofillChange(Type type, const AutofillKey& key) |
| 11 : GenericAutofillChange<AutofillKey>(type, key) { | 11 : GenericAutofillChange<AutofillKey>(type, key) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 AutofillChange::~AutofillChange() { | 14 AutofillChange::~AutofillChange() { |
| 15 } | 15 } |
| 16 | 16 |
| 17 AutofillProfileChange::AutofillProfileChange( | 17 AutofillProfileChange::AutofillProfileChange( |
| 18 Type type, const std::string& key, const AutofillProfile* profile) | 18 Type type, const std::string& key, const AutofillProfile* profile) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 43 | 43 |
| 44 AutofillCreditCardChange::~AutofillCreditCardChange() { | 44 AutofillCreditCardChange::~AutofillCreditCardChange() { |
| 45 } | 45 } |
| 46 | 46 |
| 47 bool AutofillCreditCardChange::operator==( | 47 bool AutofillCreditCardChange::operator==( |
| 48 const AutofillCreditCardChange& change) const { | 48 const AutofillCreditCardChange& change) const { |
| 49 return type() == change.type() && | 49 return type() == change.type() && |
| 50 key() == change.key() && | 50 key() == change.key() && |
| 51 (type() != REMOVE) ? *credit_card() == *change.credit_card() : true; | 51 (type() != REMOVE) ? *credit_card() == *change.credit_card() : true; |
| 52 } | 52 } |
| OLD | NEW |