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

Unified Diff: components/payments/payment_details_validation.cc

Issue 2637603002: [Payments] Use formatter currency code on desktop (Closed)
Patch Set: rebase Created 3 years, 11 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/payment_details_validation.cc
diff --git a/components/payments/payment_details_validation.cc b/components/payments/payment_details_validation.cc
index a01303e904cea9bb89f2005d2865de3bf7a3ed24..81c42cdbb4924298c0e2f32f831986b48a999677 100644
--- a/components/payments/payment_details_validation.cc
+++ b/components/payments/payment_details_validation.cc
@@ -44,15 +44,15 @@ bool validateShippingOptionOrPaymentItem(
return false;
}
- if (item->amount->currencySystem.has_value() &&
- item->amount->currencySystem.value().empty()) {
+ if (item->amount->currency_system.has_value() &&
+ item->amount->currency_system.value().empty()) {
*error_message = "Currency system can't be empty";
return false;
}
if (!payments::PaymentsValidators::isValidCurrencyCodeFormat(
- item->amount->currency, item->amount->currencySystem.has_value()
- ? item->amount->currencySystem.value()
+ item->amount->currency, item->amount->currency_system.has_value()
+ ? item->amount->currency_system.value()
: "",
error_message)) {
return false;
« no previous file with comments | « chrome/browser/ui/views/payments/payment_sheet_view_controller.cc ('k') | components/payments/payment_request.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698