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

Issue 2887713002: PaymentHandler: Merge PaymentAppRequest and PaymentRequestEvent. (Closed)

Created:
3 years, 7 months ago by zino
Modified:
3 years, 7 months ago
CC:
chromium-reviews, gogerald+paymentswatch_chromium.org, haraken, rouslan+payments_chromium.org, blink-reviews, mahmadi+paymentswatch_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentHandler: Merge PaymentAppRequest and PaymentRequestEvent. It was changed in spec side[1][2]. There is no reason to have both of those. Also, this CL is adding new attributes. (e.g. topLevelOrigin, instrumentKey) [1] https://github.com/w3c/payment-handler/issues/142 [2] https://w3c.github.io/payment-handler/#the-paymentrequestevent BUG=661608, 720027 Review-Url: https://codereview.chromium.org/2887713002 Cr-Commit-Position: refs/heads/master@{#474791} Committed: https://chromium.googlesource.com/chromium/src/+/35b8d35a15ee876c0a6a5ce1b69769fabf9bb82b

Patch Set 1 #

Patch Set 2 : PaymentRequestEvent #

Patch Set 3 : PaymentHandler: Merge PaymentAppRequest and PaymentRequestEvent. #

Total comments: 15

Patch Set 4 : PaymentHandler: Merge PaymentAppRequest and PaymentRequestEvent. #

Total comments: 1

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -75 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentAppBridge.java View 1 2 2 chunks +20 lines, -16 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/android/payments/service_worker_payment_app_bridge.cc View 1 2 2 chunks +21 lines, -12 lines 0 comments Download
M components/payments/mojom/payment_app.mojom View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/payments/payment_app_browsertest.cc View 1 2 3 4 4 chunks +56 lines, -14 lines 0 comments Download
M content/renderer/service_worker/service_worker_type_converters.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M content/test/data/payments/payment_app.js View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M content/test/data/payments/payment_app_invocation.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/payments/resources/payment-request-event.js View 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppRequestConversion.cpp View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppRequestConversionTest.cpp View 1 2 3 chunks +15 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h View 2 chunks +17 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp View 1 2 3 chunks +36 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestEvent.idl View 1 2 3 1 chunk +14 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
zino
PTAL rouslan@, gogerald1@ for payments Tom Sepez@ for mojom nhiroki@ for service worker
3 years, 7 months ago (2017-05-21 11:51:58 UTC) #7
nhiroki
lgtm from SW POV. https://codereview.chromium.org/2887713002/diff/40001/content/test/data/payments/payment_app.js File content/test/data/payments/payment_app.js (right): https://codereview.chromium.org/2887713002/diff/40001/content/test/data/payments/payment_app.js#newcode22 content/test/data/payments/payment_app.js:22: sendResultToTest(e.instrumentKey); sendResultToTest()s run async operations, ...
3 years, 7 months ago (2017-05-21 23:41:40 UTC) #10
please use gerrit instead
https://codereview.chromium.org/2887713002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl File third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl (right): https://codereview.chromium.org/2887713002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl#newcode1 third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 7 months ago (2017-05-22 14:20:05 UTC) #11
Tom Sepez
mojom LGTM
3 years, 7 months ago (2017-05-22 16:14:32 UTC) #12
zino
Thank you for review. PTAL a new patch set with my comments. https://codereview.chromium.org/2887713002/diff/40001/content/test/data/payments/payment_app.js File content/test/data/payments/payment_app.js ...
3 years, 7 months ago (2017-05-23 14:51:29 UTC) #13
please use gerrit instead
https://codereview.chromium.org/2887713002/diff/40001/third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h File third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h (right): https://codereview.chromium.org/2887713002/diff/40001/third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h#newcode6 third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h:6: #define WebPaymentAppRequest_h On 2017/05/23 14:51:29, zino wrote: > On ...
3 years, 7 months ago (2017-05-23 15:03:00 UTC) #14
please use gerrit instead
https://codereview.chromium.org/2887713002/diff/60001/third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl File third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl (right): https://codereview.chromium.org/2887713002/diff/60001/third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl#newcode8 third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl:8: // Please see https://github.com/w3c/payment-handler/pull/162 FYI, that issue is for ...
3 years, 7 months ago (2017-05-23 15:04:32 UTC) #15
zino
https://codereview.chromium.org/2887713002/diff/40001/third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h File third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h (right): https://codereview.chromium.org/2887713002/diff/40001/third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h#newcode6 third_party/WebKit/public/platform/modules/payments/WebPaymentAppRequest.h:6: #define WebPaymentAppRequest_h On 2017/05/23 15:02:59, ಠ_ಠ wrote: > On ...
3 years, 7 months ago (2017-05-23 15:15:18 UTC) #16
please use gerrit instead
On 2017/05/23 15:15:18, zino wrote: > If we should rename this, I think PaymentRequestEventData is ...
3 years, 7 months ago (2017-05-23 15:17:30 UTC) #17
zino
On 2017/05/23 15:04:32, ಠ_ಠ wrote: > https://codereview.chromium.org/2887713002/diff/60001/third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl > File third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl (right): > > https://codereview.chromium.org/2887713002/diff/60001/third_party/WebKit/Source/modules/payments/PaymentAppRequest.idl#newcode8 > ...
3 years, 7 months ago (2017-05-23 15:21:36 UTC) #18
please use gerrit instead
On 2017/05/23 15:21:36, zino wrote: > we still should have PaymentAppRequest(or PaymentRequestEventData). The spec has ...
3 years, 7 months ago (2017-05-23 15:24:23 UTC) #19
please use gerrit instead
Ganggui explained what's going on exactly. You're doing it correctly. Sorry for the confusion.
3 years, 7 months ago (2017-05-23 15:36:56 UTC) #20
please use gerrit instead
So, to be clear, I believe that WebPaymentApPrequest.h is fine to stay, but PaymentAppRequest.idl seems ...
3 years, 7 months ago (2017-05-23 16:07:46 UTC) #21
zino
On 2017/05/23 15:36:56, ಠ_ಠ wrote: > Ganggui explained what's going on exactly. You're doing it ...
3 years, 7 months ago (2017-05-23 17:06:27 UTC) #22
zino
On 2017/05/23 16:07:46, ಠ_ಠ wrote: > So, to be clear, I believe that WebPaymentApPrequest.h is ...
3 years, 7 months ago (2017-05-23 17:33:02 UTC) #23
please use gerrit instead
lgtm
3 years, 7 months ago (2017-05-25 14:05:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887713002/60001
3 years, 7 months ago (2017-05-25 16:34:05 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/218950) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 7 months ago (2017-05-25 16:37:06 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887713002/80001
3 years, 7 months ago (2017-05-25 18:08:37 UTC) #32
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 20:44:07 UTC) #35
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/35b8d35a15ee876c0a6a5ce1b697...

Powered by Google App Engine
This is Rietveld 408576698