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

Issue 2946013002: PaymentHandler: Implement requestPermission().

Created:
3 years, 6 months ago by zino
Modified:
3 years, 5 months ago
CC:
chromium-reviews, darin (slow to review), msramek+watch_chromium.org, viettrungluu+watch_chromium.org, qsr+mojo_chromium.org, blink-reviews-api_chromium.org, Aaron Boodman, mlamouri+watch-blink_chromium.org, blink-reviews, jam, raymes+watch_chromium.org, gogerald+paymentswatch_chromium.org, haraken, rouslan+payments_chromium.org, dglazkov+blink, darin-cc_chromium.org, yzshen+watch_chromium.org, mlamouri+watch-permissions_chromium.org, mahmadi+paymentswatch_chromium.org, markusheintz_, abarth-chromium, sebsg+paymentswatch_chromium.org, emilyschechter
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentHandler: Implement requestPermission(). The method is used to get a permission to install a new payment handler. The spec[1] is still unclear but we can implement this API via experiences of other APIs. We will also change the related spec context based on this patch. This patch includes the following things according to the guide in chrome/browser/permissions/permission_context_base.h - Implement web-facing API in Blink. (but it's still behind a runtime flag) - Add a new CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER type. - Add PaymentHandlerPermissionContext class that inherits from PermissionContextBase and passes the new permission. - Provide permission UI including infobar for Android. - Test (payment_handler_permission_context_unittest.cc) Related spec link: [1] https://w3c.github.io/payment-handler/#requestpermission-method BUG=661608, 665949

Patch Set 1 #

Total comments: 30

Patch Set 2 : PaymentHandler: Implement requestPermission(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -15 lines) Patch
M WATCHLISTS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/android/resource_id.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/payments/OWNERS View 1 chunk +3 lines, -1 line 0 comments Download
A chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.cc View 1 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/payments/payment_handler_permission_context.h View 1 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/payments/payment_handler_permission_context.cc View 1 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/payments/payment_handler_permission_context_unittest.cc View 1 1 chunk +138 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_infobar_delegate.cc View 1 2 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/permissions/permission_manager.cc View 1 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_request_impl.cc View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_registry.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings_types.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/payments_strings.grdp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/public/browser/permission_type.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentManager.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentManager.cpp View 1 3 chunks +44 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentManager.idl View 1 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/permissions/permission.mojom View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
zino
PTAL rouslan@ for payments mlamouri@ for permissions I'll add some screenshots in crbug. (and then ...
3 years, 6 months ago (2017-06-20 12:15:50 UTC) #3
please use gerrit instead
Can you send a pull request to the spec that describes your plan? You can ...
3 years, 6 months ago (2017-06-20 13:09:27 UTC) #4
please use gerrit instead
Please hook up checking for permission when a service worker attempts to register a payment ...
3 years, 6 months ago (2017-06-20 13:28:09 UTC) #5
raymes
Hey Rouslan, it would be nice to understand a bit more what the plans are ...
3 years, 6 months ago (2017-06-21 01:18:47 UTC) #7
please use gerrit instead
On 2017/06/21 01:18:47, raymes wrote: > Hey Rouslan, it would be nice to understand a ...
3 years, 6 months ago (2017-06-21 15:02:36 UTC) #8
zino
Thank you for review. I addressed all your comments except message on ui. https://codereview.chromium.org/2946013002/diff/1/chrome/browser/payments/OWNERS File ...
3 years, 6 months ago (2017-06-22 17:26:49 UTC) #9
please use gerrit instead
3 years, 6 months ago (2017-06-22 19:27:49 UTC) #10
Everything looks good. I will hold my l-g-t-m until we figure out the strings on
the bug.

Powered by Google App Engine
This is Rietveld 408576698