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

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

Issue 2739033004: Send origin of the iframe browsing context (Closed)
Patch Set: Address review comments Created 3 years, 9 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/ServiceWorkerPaymentAppBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentAppBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentAppBridge.java
index ec61feb7c8f75c49d39f53f3e24dea73242b66ff..fe0581718d31a46872be236b8f67dcac8b50e968 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentAppBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentAppBridge.java
@@ -68,15 +68,19 @@ public class ServiceWorkerPaymentAppBridge implements PaymentAppFactory.PaymentA
* @param webContents The web contents that invoked PaymentRequest.
* @param registrationId The service worker registration ID of the Payment App.
* @param optionId The ID of the PaymentOption that was selected by the user.
+ * @param origin The origin of this merchant.
+ * @param iframeOrigin The origin of the iframe browsing context that invoked
+ * PaymentRequest.
* @param methodData The PaymentMethodData objects that are relevant for this payment
* app.
* @param total The PaymentItem that represents the total cost of the payment.
* @param modifiers Payment method specific modifiers to the payment items and the total.
*/
public static void invokePaymentApp(WebContents webContents, long registrationId,
- String optionId, String origin, Set<PaymentMethodData> methodData, PaymentItem total,
- List<PaymentItem> displayItems, Set<PaymentDetailsModifier> modifiers) {
- nativeInvokePaymentApp(webContents, registrationId, optionId, origin,
+ String optionId, String origin, String iframeOrigin, Set<PaymentMethodData> methodData,
+ PaymentItem total, List<PaymentItem> displayItems,
+ Set<PaymentDetailsModifier> modifiers) {
+ nativeInvokePaymentApp(webContents, registrationId, optionId, origin, iframeOrigin,
methodData.toArray(new PaymentMethodData[0]), total,
modifiers.toArray(new PaymentDetailsModifier[0]));
}
@@ -164,6 +168,6 @@ public class ServiceWorkerPaymentAppBridge implements PaymentAppFactory.PaymentA
private static native void nativeGetAllAppManifests(WebContents webContents, Object callback);
private static native void nativeInvokePaymentApp(WebContents webContents, long registrationId,
- String optionId, String origin, PaymentMethodData[] methodData, PaymentItem total,
- PaymentDetailsModifier[] modifiers);
+ String optionId, String origin, String iframeOrigin, PaymentMethodData[] methodData,
+ PaymentItem total, PaymentDetailsModifier[] modifiers);
}

Powered by Google App Engine
This is Rietveld 408576698