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

Unified Diff: components/autofill/core/browser/credit_card.cc

Issue 2849523003: Add billing address as a mandatory field of Payments credit cards. (Closed)
Patch Set: Components Unittests fix Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
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 0d35c340dfa83c378792edc15a3d693a1150d579..2b8d2a03c71b85ab8112cc330f44bb32c76ce2a7 100644
--- a/components/autofill/core/browser/credit_card.cc
+++ b/components/autofill/core/browser/credit_card.cc
@@ -678,7 +678,9 @@ bool CreditCard::IsLocalDuplicateOfServerCard(const CreditCard& other) const {
if ((!name_on_card_.empty() && name_on_card_ != other.name_on_card_) ||
(expiration_month_ != 0 &&
expiration_month_ != other.expiration_month_) ||
- (expiration_year_ != 0 && expiration_year_ != other.expiration_year_)) {
+ (expiration_year_ != 0 && expiration_year_ != other.expiration_year_) ||
+ (!billing_address_id_.empty() &&
+ billing_address_id_ != other.billing_address_id_)) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698