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

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

Issue 2640743005: PaymentApp: Implement invokePaymentApp for Android (Closed)
Patch Set: Fix a compile error 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: chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java
index 0dd36fda08fd24656083d5e55fcdeab9e51111d5..e50339c4626b6aa2d2b88bc0abc9b48e8bc3d9fb 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java
@@ -5,6 +5,7 @@
package org.chromium.chrome.browser.payments;
import org.chromium.content_public.browser.WebContents;
+import org.chromium.payments.mojom.PaymentDetailsModifier;
import org.chromium.payments.mojom.PaymentItem;
import org.chromium.payments.mojom.PaymentMethodData;
@@ -55,11 +56,13 @@ public class ServiceWorkerPaymentInstrument extends PaymentInstrument {
}
@Override
- public void invokePaymentApp(String merchantName, String origin, PaymentItem total,
- List<PaymentItem> cart, Map<String, PaymentMethodData> methodDataMap,
+ public void invokePaymentApp(String merchantName, String origin,
+ Map<String, PaymentMethodData> methodData, PaymentItem total,
+ List<PaymentItem> displayItems, Map<String, PaymentDetailsModifier> modifiers,
InstrumentDetailsCallback callback) {
ServiceWorkerPaymentAppBridge.invokePaymentApp(mWebContents, mAppRegistrationId, mOption.id,
- new HashSet<>(methodDataMap.values()));
+ origin, new HashSet<>(methodData.values()), total, displayItems,
+ new HashSet<>(modifiers.values()));
}
@Override

Powered by Google App Engine
This is Rietveld 408576698