| Index: components/autofill/core/browser/personal_data_manager.cc
|
| diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
|
| index d2e69a1444aa8923f9c404ddf111898a7f4adef4..cf312a0c74478e19691cae6787f295781ace53a1 100644
|
| --- a/components/autofill/core/browser/personal_data_manager.cc
|
| +++ b/components/autofill/core/browser/personal_data_manager.cc
|
| @@ -1395,8 +1395,12 @@ bool PersonalDataManager::ImportCreditCard(
|
| }
|
|
|
| // Also don't offer to save if we already have this stored as a server card.
|
| + // We only check the number because if the new card has the same number as the
|
| + // server card, upload is guaranteed to fail. There's no mechanism for entries
|
| + // with the same number but different names or expiration dates as there is
|
| + // for local cards.
|
| for (const CreditCard* card : server_credit_cards_) {
|
| - if (candidate_credit_card.IsLocalDuplicateOfServerCard(*card))
|
| + if (candidate_credit_card.HasSameNumberAs(*card))
|
| return false;
|
| }
|
|
|
|
|