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

Issue 2618383002: Initial implementation for feature policy - PaymentRequest (Closed)

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

Description

Initial implementation for feature policy - PaymentRequest Disable PaymentRequest API unless enabled through feature policy. BUG=679385 Review-Url: https://codereview.chromium.org/2618383002 Cr-Commit-Position: refs/heads/master@{#444797} Committed: https://chromium.googlesource.com/chromium/src/+/662473565c1dd46ec06077c8e6519c195814b46d

Patch Set 1 #

Patch Set 2 : Added layout tests for payment request #

Patch Set 3 : Added layout test expects #

Total comments: 5

Patch Set 4 : Codereview: nit + added link to bug that is blocking payment #

Total comments: 4

Patch Set 5 : Codereivew: made assert_unreached Error message more explicit in payment-disabled.php test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -10 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled.php View 1 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-enabledforall.php View 1 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-enabledforall-expected.txt View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-enabledforself.php View 1 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-enabledforself-expected.txt View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-payment-disabled.html View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-payment-enabled.html View 1 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/payment-disabled-expected.txt View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/payment-enabledforall-expected.txt View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/feature-policy/http/tests/feature-policy/payment-enabledforself-expected.txt View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 2 chunks +46 lines, -10 lines 0 comments Download

Messages

Total messages: 38 (27 generated)
lunalu1
3 years, 11 months ago (2017-01-12 18:23:43 UTC) #16
please use gerrit instead
Sorry for the drive-by. https://codereview.chromium.org/2618383002/diff/60001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2618383002/diff/60001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode571 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:571: // and nit: reflow the ...
3 years, 11 months ago (2017-01-18 15:00:20 UTC) #21
iclelland
https://codereview.chromium.org/2618383002/diff/60001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2618383002/diff/60001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode583 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:583: // TODO(lunalu): clean up the code once FP iframe ...
3 years, 11 months ago (2017-01-18 16:17:31 UTC) #22
lunalu1
Hi, Thanks for reviewing my CL. I have made the changes. Please take another look. ...
3 years, 11 months ago (2017-01-18 17:12:13 UTC) #23
please use gerrit instead
I can provide my rubber stamp after Ian's approval.
3 years, 11 months ago (2017-01-18 19:00:23 UTC) #27
iclelland
https://codereview.chromium.org/2618383002/diff/80001/third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt File third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt (right): https://codereview.chromium.org/2618383002/diff/80001/third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt#newcode23 third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt:23: FAIL No iframe may construct PaymentRequest when disabled. assert_equals: ...
3 years, 11 months ago (2017-01-18 19:31:00 UTC) #28
lunalu1
Done. Thanks https://codereview.chromium.org/2618383002/diff/80001/third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt File third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt (right): https://codereview.chromium.org/2618383002/diff/80001/third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt#newcode23 third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt:23: FAIL No iframe may construct PaymentRequest when ...
3 years, 11 months ago (2017-01-19 16:54:08 UTC) #31
iclelland
On 2017/01/19 16:54:08, loonybear wrote: > Done. Thanks > > https://codereview.chromium.org/2618383002/diff/80001/third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt > File > third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled-expected.txt ...
3 years, 11 months ago (2017-01-19 17:12:37 UTC) #32
please use gerrit instead
lgtm
3 years, 11 months ago (2017-01-19 18:14:28 UTC) #33
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/2618383002/100001
3 years, 11 months ago (2017-01-19 18:15:03 UTC) #35
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 18:36:52 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/662473565c1dd46ec06077c8e651...

Powered by Google App Engine
This is Rietveld 408576698