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

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

Issue 2449943002: Add pending line item support for web payments. (Closed)
Patch Set: Comments Created 4 years, 2 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/ui/LineItem.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/LineItem.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/LineItem.java
index 0d702921e00235553d38dd0937adac3a48968fd6..fcf2e70b12a08e99dcc6404abba4fbb6d78a6d8d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/LineItem.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/LineItem.java
@@ -11,18 +11,21 @@ public class LineItem {
private final String mLabel;
private final String mCurrency;
private final String mPrice;
+ private final boolean mIsPending;
/**
* Builds a line item.
*
- * @param label The line item label.
- * @param currency The currency code.
- * @param price The price string.
+ * @param label The line item label.
+ * @param currency The currency code.
+ * @param price The price string.
+ * @param isPending Whether the price is pending.
*/
- public LineItem(String label, String currency, String price) {
+ public LineItem(String label, String currency, String price, boolean isPending) {
mLabel = label;
mCurrency = currency;
mPrice = price;
+ mIsPending = isPending;
}
/**
@@ -51,4 +54,9 @@ public class LineItem {
public String getPrice() {
return mPrice;
}
+
+ /** @return Whether the price is pending. */
+ public boolean getIsPending() {
+ return mIsPending;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698