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

Unified Diff: ios/chrome/browser/ui/payments/payment_method_selection_mediator.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/ui/payments/payment_method_selection_mediator.mm
diff --git a/ios/chrome/browser/ui/payments/payment_method_selection_mediator.mm b/ios/chrome/browser/ui/payments/payment_method_selection_mediator.mm
index 66451bd9976132cb88f92aaa3ef506a15c8531d6..66a32c1325626f1421beb2beb784d647ac876082 100644
--- a/ios/chrome/browser/ui/payments/payment_method_selection_mediator.mm
+++ b/ios/chrome/browser/ui/payments/payment_method_selection_mediator.mm
@@ -91,7 +91,7 @@ using ::payment_request_util::GetBillingAddressLabelFromAutofillProfile;
DCHECK(paymentMethod);
PaymentMethodItem* item = [[PaymentMethodItem alloc] init];
item.methodID =
- base::SysUTF16ToNSString(paymentMethod->TypeAndLastFourDigits());
+ base::SysUTF16ToNSString(paymentMethod->NetworkAndLastFourDigits());
item.methodDetail = base::SysUTF16ToNSString(
paymentMethod->GetRawInfo(autofill::CREDIT_CARD_NAME_FULL));
@@ -105,7 +105,7 @@ using ::payment_request_util::GetBillingAddressLabelFromAutofillProfile;
}
int methodTypeIconID =
- autofill::data_util::GetPaymentRequestData(paymentMethod->type())
+ autofill::data_util::GetPaymentRequestData(paymentMethod->network())
.icon_resource_id;
item.methodTypeIcon = NativeImage(methodTypeIconID);

Powered by Google App Engine
This is Rietveld 408576698