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

Unified Diff: components/autofill/core/browser/autofill_data_util.cc

Issue 2827243004: [Payment Request] Adds a11y label resource IDs to the basic card data (Closed)
Patch Set: Fixed compile error 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
« no previous file with comments | « components/autofill/core/browser/autofill_data_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_data_util.cc
diff --git a/components/autofill/core/browser/autofill_data_util.cc b/components/autofill/core/browser/autofill_data_util.cc
index f55ec9068c50c8a04a02587a1910cff55dea3ced..974ab708b8535d01f3137e5c5024f01161b1124a 100644
--- a/components/autofill/core/browser/autofill_data_util.cc
+++ b/components/autofill/core/browser/autofill_data_util.cc
@@ -13,6 +13,7 @@
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/grit/components_scaled_resources.h"
+#include "components/strings/grit/components_strings.h"
#include "third_party/icu/source/common/unicode/uscript.h"
namespace autofill {
@@ -23,17 +24,20 @@ namespace {
// spec types and icons. Note that "generic" is not in the spec.
// https://w3c.github.io/webpayments-methods-card/#method-id
const PaymentRequestData kPaymentRequestData[]{
- {"americanExpressCC", "amex", IDR_AUTOFILL_PR_AMEX},
- {"dinersCC", "diners", IDR_AUTOFILL_PR_DINERS},
- {"discoverCC", "discover", IDR_AUTOFILL_PR_DISCOVER},
- {"jcbCC", "jcb", IDR_AUTOFILL_PR_JCB},
- {"masterCardCC", "mastercard", IDR_AUTOFILL_PR_MASTERCARD},
- {"mirCC", "mir", IDR_AUTOFILL_PR_MIR},
- {"unionPayCC", "unionpay", IDR_AUTOFILL_PR_UNIONPAY},
- {"visaCC", "visa", IDR_AUTOFILL_PR_VISA},
+ {"americanExpressCC", "amex", IDR_AUTOFILL_PR_AMEX, IDS_AUTOFILL_CC_AMEX},
+ {"dinersCC", "diners", IDR_AUTOFILL_PR_DINERS, IDS_AUTOFILL_CC_DINERS},
+ {"discoverCC", "discover", IDR_AUTOFILL_PR_DISCOVER,
+ IDS_AUTOFILL_CC_DISCOVER},
+ {"jcbCC", "jcb", IDR_AUTOFILL_PR_JCB, IDS_AUTOFILL_CC_JCB},
+ {"masterCardCC", "mastercard", IDR_AUTOFILL_PR_MASTERCARD,
+ IDS_AUTOFILL_CC_MASTERCARD},
+ {"mirCC", "mir", IDR_AUTOFILL_PR_MIR, IDS_AUTOFILL_CC_MIR},
+ {"unionPayCC", "unionpay", IDR_AUTOFILL_PR_UNIONPAY,
+ IDS_AUTOFILL_CC_UNION_PAY},
+ {"visaCC", "visa", IDR_AUTOFILL_PR_VISA, IDS_AUTOFILL_CC_VISA},
};
-const PaymentRequestData kGenericPaymentRequestData = {"genericCC", "generic",
- IDR_AUTOFILL_PR_GENERIC};
+const PaymentRequestData kGenericPaymentRequestData = {
+ "genericCC", "generic", IDR_AUTOFILL_PR_GENERIC, IDS_AUTOFILL_CC_GENERIC};
const char* const name_prefixes[] = {
"1lt", "1st", "2lt", "2nd", "3rd", "admiral", "capt",
« no previous file with comments | « components/autofill/core/browser/autofill_data_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698