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

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

Issue 2030193002: Add 'total' field to 'PaymentDetails'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, address comments, and add more tests Created 4 years, 6 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/PaymentInstrument.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
index eee16b2061e899d6f5f11b476f6d1f688a884aec..799b863a258b51fd4852a7024e528ba2c0e17da2 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
@@ -50,12 +50,13 @@ public abstract class PaymentInstrument extends PaymentOption {
*
* @param merchantName The name of the merchant.
* @param origin The origin of this merchant.
- * @param items The line items, the last of which is the total.
+ * @param total The total amount.
+ * @param items The shopping cart items.
* @param details The payment-method specific data.
* @param callback The object that will receive the instrument details.
*/
- public abstract void getDetails(String merchantName, String origin, List<PaymentItem> items,
- JSONObject details, DetailsCallback callback);
+ public abstract void getDetails(String merchantName, String origin, PaymentItem total,
+ List<PaymentItem> cart, JSONObject details, DetailsCallback callback);
/**
* Cleans up any resources held by the payment instrument. For example, closes server

Powered by Google App Engine
This is Rietveld 408576698