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

Unified Diff: ios/chrome/browser/payments/payment_request.mm

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: ios/chrome/browser/payments/payment_request.mm
diff --git a/ios/chrome/browser/payments/payment_request.mm b/ios/chrome/browser/payments/payment_request.mm
index 3b9fe0a4642ad73a64a4cb567ee5be8d31ed042a..d8d3738aecfefdb4b04ee493f5534fd2fdb14fce 100644
--- a/ios/chrome/browser/payments/payment_request.mm
+++ b/ios/chrome/browser/payments/payment_request.mm
@@ -122,12 +122,12 @@ void PaymentRequest::PopulateCreditCardCache() {
credit_card_cache_.reserve(credit_cards_to_suggest.size());
for (const auto* credit_card : credit_cards_to_suggest) {
- std::string spec_card_type =
- autofill::data_util::GetPaymentRequestData(credit_card->type())
- .basic_card_payment_type;
+ std::string spec_issuer_network =
+ autofill::data_util::GetPaymentRequestData(credit_card->network())
+ .basic_card_issuer_network;
if (std::find(supported_card_networks_.begin(),
supported_card_networks_.end(),
- spec_card_type) != supported_card_networks_.end()) {
+ spec_issuer_network) != supported_card_networks_.end()) {
credit_card_cache_.push_back(*credit_card);
credit_cards_.push_back(&credit_card_cache_.back());
}
« no previous file with comments | « components/webdata/common/web_database_table.h ('k') | ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698