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

Unified Diff: components/payments/core/autofill_payment_instrument.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/core/autofill_payment_instrument.cc
diff --git a/components/payments/core/autofill_payment_instrument.cc b/components/payments/core/autofill_payment_instrument.cc
index 04017e439f2e6ff936e4f0ad5631e5f5319798dc..a7ada55308714708aa5074ce58fc8d27f5e62708 100644
--- a/components/payments/core/autofill_payment_instrument.cc
+++ b/components/payments/core/autofill_payment_instrument.cc
@@ -4,6 +4,8 @@
#include "components/payments/core/autofill_payment_instrument.h"
+#include <memory>
+
#include "base/json/json_writer.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -26,11 +28,11 @@ AutofillPaymentInstrument::AutofillPaymentInstrument(
PaymentRequestDelegate* payment_request_delegate)
: PaymentInstrument(
method_name,
- /* label= */ card.TypeAndLastFourDigits(),
+ /* label= */ card.NetworkAndLastFourDigits(),
/* sublabel= */
card.GetInfo(autofill::AutofillType(autofill::CREDIT_CARD_NAME_FULL),
app_locale),
- autofill::data_util::GetPaymentRequestData(card.type())
+ autofill::data_util::GetPaymentRequestData(card.network())
.icon_resource_id,
PaymentInstrument::Type::AUTOFILL),
credit_card_(card),
« no previous file with comments | « components/payments/content/payment_request_state.cc ('k') | components/test/data/web_database/version_70.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698