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

Issue 2020883002: PaymentRequest: Introduce PaymentMethodData. (Closed)

Created:
4 years, 6 months ago by zino
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), dglazkov+blink, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentRequest: Introduce PaymentMethodData. This CL is introducing PaymentMethodData to combine the supported methods and payment method specific data. By making this change it is possible to share an instance of data amongst multiple payment methods that wasn't possible before. Related spec links: [1] https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#idl-def-paymentmethoddata [2] https://github.com/w3c/browser-payment-api/pull/162/commits/6d9c92e5d2bc82e4900823e9fa915a5be9584f6b BUG=none Committed: https://crrev.com/c6d2d4581607e7642f2f85a386cf3ace7aacf803 Cr-Commit-Position: refs/heads/master@{#398954}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 35

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 6

Patch Set 8 : rebase #

Total comments: 3

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -372 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 3 4 5 6 7 8 9 11 chunks +41 lines, -51 lines 0 comments Download
M chrome/test/data/android/payments/dynamic_shipping.js View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/android/payments/free_shipping.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/android/payments/no_shipping.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/payments/payment-request-interface.html View 1 2 3 4 5 6 7 8 3 chunks +59 lines, -67 lines 0 comments Download
M third_party/WebKit/LayoutTests/payments/promises-keep-request-alive.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 3 chunks +4 lines, -1 line 0 comments Download
D third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -44 lines 0 comments Download
D third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp View 1 2 3 4 5 6 7 1 chunk +0 lines, -94 lines 0 comments Download
A + third_party/WebKit/Source/modules/payments/PaymentMethodData.idl View 1 2 3 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.h View 1 2 3 4 4 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 4 5 6 7 8 7 chunks +58 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp View 1 2 3 4 5 6 7 8 34 chunks +35 lines, -35 lines 0 comments Download
A + third_party/WebKit/Source/modules/payments/PaymentTestHelper.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -3 lines 0 comments Download
A + third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/payments/payment_request.mojom View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -12 lines 0 comments Download

Messages

Total messages: 73 (35 generated)
zino
Please take a look. Thank you.
4 years, 6 months ago (2016-05-29 15:55:48 UTC) #7
please use gerrit instead
Thank you so much for your help in this project! +mek@ for Blink expertise. Please ...
4 years, 6 months ago (2016-05-29 19:57:12 UTC) #9
zino
Thank you for review. Could you review this again? https://codereview.chromium.org/2020883002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2020883002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode261 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:261: ...
4 years, 6 months ago (2016-06-01 17:43:46 UTC) #10
Marijn Kruisselbrink
https://codereview.chromium.org/2020883002/diff/100001/third_party/WebKit/LayoutTests/payments/payment-request-interface.html File third_party/WebKit/LayoutTests/payments/payment-request-interface.html (right): https://codereview.chromium.org/2020883002/diff/100001/third_party/WebKit/LayoutTests/payments/payment-request-interface.html#newcode153 third_party/WebKit/LayoutTests/payments/payment-request-interface.html:153: new PaymentRequest([{'supportedMethods': ['foo'], data : infiniteData }], buildDetails(), {}) ...
4 years, 6 months ago (2016-06-01 18:20:24 UTC) #11
please use gerrit instead
https://codereview.chromium.org/2020883002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentRequest.h#newcode87 > third_party/WebKit/Source/modules/payments/PaymentRequest.h:87: > HeapVector<PaymentMethodData> m_methodData; > On 2016/06/01 at 17:43:46, zino wrote: > > ...
4 years, 6 months ago (2016-06-01 19:20:21 UTC) #13
haraken
On 2016/06/01 19:20:21, Rouslan (ツ) wrote: > https://codereview.chromium.org/2020883002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentRequest.h#newcode87 > > third_party/WebKit/Source/modules/payments/PaymentRequest.h:87: > > HeapVector<PaymentMethodData> m_methodData; ...
4 years, 6 months ago (2016-06-02 01:19:46 UTC) #14
please use gerrit instead
On 2016/06/02 01:19:46, haraken wrote: > If ScriptValue is used only on stack, there's no ...
4 years, 6 months ago (2016-06-02 02:28:20 UTC) #15
haraken
On 2016/06/02 02:28:20, Rouslan (ツ) wrote: > On 2016/06/02 01:19:46, haraken wrote: > > If ...
4 years, 6 months ago (2016-06-02 02:34:39 UTC) #16
please use gerrit instead
On 2016/06/02 02:34:39, haraken wrote: > Yes, it will cause leaks. > > PaymentRequest's wrapper ...
4 years, 6 months ago (2016-06-02 03:36:23 UTC) #17
zino
On 2016/06/02 03:36:23, Rouslan (ツ) wrote: > On 2016/06/02 02:34:39, haraken wrote: > > Yes, ...
4 years, 6 months ago (2016-06-02 03:39:32 UTC) #18
haraken
On 2016/06/02 03:39:32, zino wrote: > On 2016/06/02 03:36:23, Rouslan (ツ) wrote: > > On ...
4 years, 6 months ago (2016-06-02 04:24:51 UTC) #19
zino
I addressed your comments. PTAL.
4 years, 6 months ago (2016-06-03 16:39:23 UTC) #21
please use gerrit instead
Thank you! This is looking great! I have only a few minor tweaks. It's not ...
4 years, 6 months ago (2016-06-03 18:22:28 UTC) #22
zino
Thank you for review. I've just fixed bot error as well. PTAL https://codereview.chromium.org/2020883002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java ...
4 years, 6 months ago (2016-06-04 00:48:46 UTC) #23
please use gerrit instead
lgtm
4 years, 6 months ago (2016-06-04 00:52:41 UTC) #25
zino
+tsepez@ for payment_request.mojom +dfalcantara@ for Java. PTAL
4 years, 6 months ago (2016-06-04 00:54:11 UTC) #26
dcheng
https://codereview.chromium.org/2020883002/diff/220001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom File third_party/WebKit/public/platform/modules/payments/payment_request.mojom (right): https://codereview.chromium.org/2020883002/diff/220001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom#newcode95 third_party/WebKit/public/platform/modules/payments/payment_request.mojom:95: // parses the string via base::JSONParser and passes a ...
4 years, 6 months ago (2016-06-04 02:32:36 UTC) #28
please use gerrit instead
https://codereview.chromium.org/2020883002/diff/220001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom File third_party/WebKit/public/platform/modules/payments/payment_request.mojom (right): https://codereview.chromium.org/2020883002/diff/220001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom#newcode95 third_party/WebKit/public/platform/modules/payments/payment_request.mojom:95: // parses the string via base::JSONParser and passes a ...
4 years, 6 months ago (2016-06-04 02:42:31 UTC) #29
dcheng
https://codereview.chromium.org/2020883002/diff/220001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom File third_party/WebKit/public/platform/modules/payments/payment_request.mojom (right): https://codereview.chromium.org/2020883002/diff/220001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom#newcode95 third_party/WebKit/public/platform/modules/payments/payment_request.mojom:95: // parses the string via base::JSONParser and passes a ...
4 years, 6 months ago (2016-06-04 03:30:01 UTC) #30
Tom Sepez
https://codereview.chromium.org/2020883002/diff/220001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom File third_party/WebKit/public/platform/modules/payments/payment_request.mojom (right): https://codereview.chromium.org/2020883002/diff/220001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom#newcode95 third_party/WebKit/public/platform/modules/payments/payment_request.mojom:95: // parses the string via base::JSONParser and passes a ...
4 years, 6 months ago (2016-06-06 16:15:37 UTC) #31
gone
*.java lgtm https://codereview.chromium.org/2020883002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2020883002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode263 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:263: if (methodData == null || methodData.length == ...
4 years, 6 months ago (2016-06-06 18:07:33 UTC) #32
please use gerrit instead
On 2016/06/06 16:15:37, Tom Sepez wrote: > Yes, the C++ impl has this restriction which ...
4 years, 6 months ago (2016-06-06 18:36:20 UTC) #33
please use gerrit instead
On 2016/06/06 18:36:20, Rouslan (ツ) wrote: > On 2016/06/06 16:15:37, Tom Sepez wrote: > > ...
4 years, 6 months ago (2016-06-06 18:37:45 UTC) #34
zino
On 2016/06/06 18:37:45, Rouslan (ツ) wrote: > On 2016/06/06 18:36:20, Rouslan (ツ) wrote: > > ...
4 years, 6 months ago (2016-06-06 18:52:05 UTC) #35
please use gerrit instead
On 2016/06/06 18:52:05, zino wrote: > On 2016/06/06 18:37:45, Rouslan (ツ) wrote: > > jinho.bang@: ...
4 years, 6 months ago (2016-06-07 23:39:36 UTC) #40
zino
Rebased. PTAL (Especially *.mojom)
4 years, 6 months ago (2016-06-08 13:35:34 UTC) #47
please use gerrit instead
still lgtm https://codereview.chromium.org/2020883002/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2020883002/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode255 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:255: // Payment method specific data should be ...
4 years, 6 months ago (2016-06-09 02:44:13 UTC) #51
zino
On 2016/06/09 02:44:13, Rouslan (ツ) wrote: > still lgtm > > https://codereview.chromium.org/2020883002/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java > File > ...
4 years, 6 months ago (2016-06-09 03:05:15 UTC) #52
haraken
LGTM
4 years, 6 months ago (2016-06-09 04:03:32 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020883002/550001
4 years, 6 months ago (2016-06-09 13:21:29 UTC) #58
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020883002/570001
4 years, 6 months ago (2016-06-09 13:43:24 UTC) #61
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-09 15:31:03 UTC) #63
zino
tsepez@ Could you review payment_reqeust.mojom?
4 years, 6 months ago (2016-06-09 15:34:25 UTC) #64
Tom Sepez
Mojom LGTM, given the extensive discussion of JSON already on this CL. Thanks.
4 years, 6 months ago (2016-06-09 18:04:09 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020883002/570001
4 years, 6 months ago (2016-06-09 18:12:15 UTC) #68
commit-bot: I haz the power
Committed patchset #10 (id:570001)
4 years, 6 months ago (2016-06-09 18:37:51 UTC) #70
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-09 18:38:13 UTC) #71
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 18:46:07 UTC) #73
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c6d2d4581607e7642f2f85a386cf3ace7aacf803
Cr-Commit-Position: refs/heads/master@{#398954}

Powered by Google App Engine
This is Rietveld 408576698