Index: components/autofill/content/browser/wallet/wallet_client.cc |
diff --git a/components/autofill/content/browser/wallet/wallet_client.cc b/components/autofill/content/browser/wallet/wallet_client.cc |
index 30fd6186abc7d722691239ed852b332db559d0f7..6f39021db95a4d3665a8b9d3fda6bb11bec0f215 100644 |
--- a/components/autofill/content/browser/wallet/wallet_client.cc |
+++ b/components/autofill/content/browser/wallet/wallet_client.cc |
@@ -408,8 +408,7 @@ void WalletClient::SaveToWallet(scoped_ptr<Instrument> instrument, |
instrument->address()->phone_number()); |
} else { |
DCHECK(instrument->address() || |
- (instrument->expiration_month() > 0 && |
- instrument->expiration_year() > 0)); |
+ instrument->expiration_differs_from_server()); |
request_dict.SetString(kUpgradedInstrumentIdKey, |
instrument->object_id()); |
@@ -422,8 +421,8 @@ void WalletClient::SaveToWallet(scoped_ptr<Instrument> instrument, |
instrument->address()->ToDictionaryWithoutID().release()); |
} |
- if (instrument->expiration_month() > 0 && |
- instrument->expiration_year() > 0) { |
+ if (instrument->expiration_differs_from_server()) { |
+ // Updating expiration date requires a CVC. |
DCHECK(!instrument->card_verification_number().empty()); |
request_dict.SetInteger(kInstrumentExpMonthKey, |
instrument->expiration_month()); |