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

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

Issue 2770193003: Implement request id in PaymentDetailsInit (Closed)
Patch Set: Add comment in mojom 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/PaymentRequestImpl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
index ca53cbcf63dd9f831990019556b106b7a20b6b33..2b54c682ff1490cd8609e8918c02f0e164ac434b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
@@ -295,6 +295,7 @@ public class PaymentRequestImpl
*/
private SectionInformation mUiShippingOptions;
+ private String mId;
private Map<String, PaymentMethodData> mMethodData;
private boolean mRequestShipping;
private boolean mRequestPayerName;
@@ -420,6 +421,8 @@ public class PaymentRequestImpl
if (!parseAndValidateDetailsOrDisconnectFromClient(details)) return;
+ mId = details.id;
+
PaymentAppFactory.getInstance().create(mWebContents,
Collections.unmodifiableSet(mMethodData.keySet()), this /* callback */);
@@ -1185,7 +1188,7 @@ public class PaymentRequestImpl
}
}
- instrument.invokePaymentApp(mMerchantName, mSchemelessOriginForPaymentApp,
+ instrument.invokePaymentApp(mId, mMerchantName, mSchemelessOriginForPaymentApp,
mSchemelessIFrameOriginForPaymentApp, mCertificateChain,
Collections.unmodifiableMap(methodData), mRawTotal, mRawLineItems,
Collections.unmodifiableMap(modifiers), this);

Powered by Google App Engine
This is Rietveld 408576698