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

Issue 2780773004: Reland "PaymentRequest: Introduce PaymentDetailsInit and PaymentDetailsUpdate." (Closed)

Created:
3 years, 8 months ago by zino
Modified:
3 years, 8 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, gogerald+paymentswatch_chromium.org, rouslan+payments_chromium.org, blink-reviews, darin-cc_chromium.org, agrieve+watch_chromium.org, mahmadi+paymentswatch_chromium.org, darin (slow to review), abarth-chromium, sebsg+paymentswatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "PaymentRequest: Introduce PaymentDetailsInit and PaymentDetailsUpdate." Reason for revert: This CL broke compilation on Android and Mac. (https://crbug.com/704166) Original issue's description: > The current implementation uses PaymentDetails structure when creating > PaymentRequest object and calling updateWith(). But some parameters like error > are only allowed in the updateWith(). If developer tries to use error > parameter when creating PaymentRequest, then throws exception. So, to solve > the problem in the latest spec[1][2], common parts are combined and each > different parts are separated into PaymentDetailsInit and > PaymentDetailsUpdate. > > This change only affects input dictionaries and doesn't break existing > behavior. Therefore, we don't need a intent to implement and ship. > > [1] https://w3c.github.io/browser-payment-api/#paymentdetailsinit-dictionary > [2] https://w3c.github.io/browser-payment-api/#paymentdetailsupdate-dictionary > > BUG=704166 > > Review-Url: https://codereview.chromium.org/2748093003 > Cr-Commit-Position: refs/heads/master@{#460053} > Committed: https://chromium.googlesource.com/chromium/src/+/aec033c55fbc09dade60bc543373deb86c517b1b BUG=704166 Review-Url: https://codereview.chromium.org/2780773004 Cr-Commit-Position: refs/heads/master@{#460323} Committed: https://chromium.googlesource.com/chromium/src/+/fcb5ec998c25a649fab3bbbc3ab1e4edf46fa97b

Patch Set 1 #

Total comments: 1

Patch Set 2 : previous patch #

Patch Set 3 : fixed patch #

Patch Set 4 : Reland "PaymentRequest: Introduce PaymentDetailsInit and PaymentDetailsUpdate." #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -227 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 3 2 chunks +19 lines, -7 lines 0 comments Download
M components/payments/content/payment_details_validation.cc View 2 chunks +9 lines, -12 lines 0 comments Download
M components/payments/content/payment_request.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M components/payments/content/payment_request.mojom View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/payments/payment-request-interface.html View 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/payments/payment-request-interface-expected.txt View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 2 3 2 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/AbortTest.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/CanMakePaymentTest.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/CompleteTest.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/OnPaymentResponseTest.cpp View 24 chunks +24 lines, -24 lines 0 comments Download
D third_party/WebKit/Source/modules/payments/PaymentDetails.idl View 1 chunk +0 lines, -13 lines 0 comments Download
A + third_party/WebKit/Source/modules/payments/PaymentDetailsBase.idl View 1 chunk +3 lines, -5 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentDetailsInit.idl View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentDetailsUpdate.idl View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.h View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 10 chunks +62 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp View 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp View 31 chunks +36 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentTestHelper.h View 2 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp View 2 chunks +65 lines, -35 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
zino
PTAL haraken@ for modules/* rouslan@ for payments/* Tom Sepez@ for mojom https://codereview.chromium.org/2780773004/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp (right): ...
3 years, 8 months ago (2017-03-28 13:25:55 UTC) #3
please use gerrit instead
Please upload two patches. One called "Original" and the second one called "Fix". That way ...
3 years, 8 months ago (2017-03-28 14:14:02 UTC) #4
zino
On 2017/03/28 14:14:02, ಠ_ಠ wrote: > Please upload two patches. One called "Original" and the ...
3 years, 8 months ago (2017-03-28 14:29:17 UTC) #5
please use gerrit instead
lgtm
3 years, 8 months ago (2017-03-28 14:35:22 UTC) #6
haraken
LGTM
3 years, 8 months ago (2017-03-28 15:55:04 UTC) #7
Tom Sepez
lgtm
3 years, 8 months ago (2017-03-28 16:41:24 UTC) #8
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/2780773004/40001
3 years, 8 months ago (2017-03-28 16:45:40 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/409759)
3 years, 8 months ago (2017-03-28 18:27:08 UTC) #12
zino
On 2017/03/28 18:27:08, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-03-28 22:08:49 UTC) #13
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/2780773004/60001
3 years, 8 months ago (2017-03-28 22:09:14 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/393478)
3 years, 8 months ago (2017-03-28 22:30:11 UTC) #18
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/2780773004/60001
3 years, 8 months ago (2017-03-29 00:42:47 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/181885)
3 years, 8 months ago (2017-03-29 02:29:06 UTC) #22
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/2780773004/60001
3 years, 8 months ago (2017-03-29 06:10:12 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 08:08:55 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/fcb5ec998c25a649fab3bbbc3ab1...

Powered by Google App Engine
This is Rietveld 408576698