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

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: Standalone 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..773f6e6aa65ab95fe1975a1a36915fc7c72d4bb4 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
@@ -74,9 +74,10 @@ public class ServiceWorkerPaymentAppBridge implements PaymentAppFactory.PaymentA
* @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,
please use gerrit instead 2017/03/15 20:04:38 Please update the list of parameters in the commen
rwlbuis 2017/03/15 20:30:41 Done.
+ 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 +165,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