Index: components/autofill/core/browser/credit_card.cc |
diff --git a/components/autofill/core/browser/credit_card.cc b/components/autofill/core/browser/credit_card.cc |
index 8cfc8b2505d29f4552dc5eae22d2ee57cfaefb7c..4dced274efd3780071beb3e29dd1dc2c60553e13 100644 |
--- a/components/autofill/core/browser/credit_card.cc |
+++ b/components/autofill/core/browser/credit_card.cc |
@@ -599,7 +599,7 @@ bool CreditCard::IsLocalDuplicateOfServerCard(const CreditCard& other) const { |
return true; |
if (other.record_type() == FULL_SERVER_CARD) |
- return number_ == other.number_; |
+ return StripSeparators(number_) == StripSeparators(other.number_); |
// For masked cards, this is the best we can do to compare card numbers. |
return TypeAndLastFourDigits() == other.TypeAndLastFourDigits(); |