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

Unified Diff: components/payments/content/payment_request_state.cc

Issue 2844463004: Rename card 'type' into 'issuer network.' (Closed)
Patch Set: read -> use Created 3 years, 8 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/payments/content/payment_request_state.cc
diff --git a/components/payments/content/payment_request_state.cc b/components/payments/content/payment_request_state.cc
index 5628fadf082bc092d1a9dd21c379a2b2d38253bf..3f7cdc4239997b21c1ccc47013fb2b67bddc4ac0 100644
--- a/components/payments/content/payment_request_state.cc
+++ b/components/payments/content/payment_request_state.cc
@@ -88,8 +88,8 @@ void PaymentRequestState::AddAutofillPaymentInstrument(
bool selected,
const autofill::CreditCard& card) {
std::string basic_card_network =
- autofill::data_util::GetPaymentRequestData(card.type())
- .basic_card_payment_type;
+ autofill::data_util::GetPaymentRequestData(card.network())
+ .basic_card_issuer_network;
if (!spec_->supported_card_networks_set().count(basic_card_network))
return;
« no previous file with comments | « components/autofill/ios/browser/credit_card_util.mm ('k') | components/payments/core/autofill_payment_instrument.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698