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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java

Issue 2281913002: Currency code exceeding 6 chars will be ellipsized. (Closed)
Patch Set: Added comments Created 4 years, 3 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: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
index e57ff7617dce074584ab970ad3309cd906e97d0e..bffe09046b87801fffd26fd049d4890ee520e562 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
@@ -490,7 +490,8 @@ public class PaymentRequestImpl implements PaymentRequest, PaymentRequestUI.Clie
}
LineItem uiTotal = new LineItem(
- details.total.label, totalCurrency, formatter.format(details.total.amount.value));
+ details.total.label, formatter.getFormattedCurrencyCode(),
+ formatter.format(details.total.amount.value));
List<LineItem> uiLineItems = getValidatedLineItems(details.displayItems, totalCurrency,
formatter);

Powered by Google App Engine
This is Rietveld 408576698