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

Issue 2476343002: PaymentApp: Initial implementation for PaymentAppManager.setManifest(). (Closed)

Created:
4 years, 1 month ago by zino
Modified:
4 years, 1 month ago
CC:
chromium-reviews, wjmaclean, creis+watch_chromium.org, qsr+mojo_chromium.org, Aaron Boodman, iclelland+watch_chromium.org, nasko+codewatch_chromium.org, jam, chasej+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Peter Beverloo, rouslan+payments_chromium.org, dglazkov+blink, darin-cc_chromium.org, jkarlin+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, darin (slow to review), viettrungluu+watch_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentApp: Initial implementation for PaymentAppManager.setManifest(). This CL includes an initial implementation in blink side and browser side. by using mojo IPC. Currently, when setManifest() is called, just sends NOT_IMPLEMENTED in browser side and then rejects NotSupportedError in blink. BUG=661608 TEST=payment-app-interfaces.html TEST=payment-app-manager.html Committed: https://crrev.com/ef456add5796bfdae498c3de4f4e8e2607d5173a Cr-Commit-Position: refs/heads/master@{#430760}

Patch Set 1 #

Total comments: 4

Patch Set 2 : PaymentApp: Initial implementation for PaymentAppManager.setManifest(). #

Patch Set 3 : PaymentApp: Initial implementation for PaymentAppManager.setManifest(). #

Total comments: 9

Patch Set 4 : fix bot error #

Patch Set 5 : jkarlin's comment #

Patch Set 6 : fix lint error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+495 lines, -23 lines) Patch
M components/payments/BUILD.gn View 1 1 chunk +10 lines, -0 lines 0 comments Download
A components/payments/payment_app.mojom View 1 1 chunk +28 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/background_sync/background_sync_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/background_sync/background_sync_service_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A content/browser/payments/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/payments/payment_app_context.h View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A content/browser/payments/payment_app_context.cc View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
A content/browser/payments/payment_app_manager.h View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
A content/browser/payments/payment_app_manager.cc View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.h View 4 chunks +4 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 6 chunks +14 lines, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/payments/payment-app-interfaces.html View 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/payments/payment-app-manager.html View 1 chunk +31 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/payments/resources/empty-worker.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/payments/resources/payment-app.js View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppManager.h View 1 1 chunk +19 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp View 1 2 3 4 1 chunk +100 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppManager.idl View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.cpp View 1 2 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 53 (38 generated)
zino
PTAL rouslan@ for payments haraken@ for blink parts. Tom Sepez@ for Mojo IPC Avi@ for ...
4 years, 1 month ago (2016-11-07 17:13:30 UTC) #11
Tom Sepez
lgtm https://codereview.chromium.org/2476343002/diff/1/third_party/WebKit/public/platform/modules/payments/payment_app.mojom File third_party/WebKit/public/platform/modules/payments/payment_app.mojom (right): https://codereview.chromium.org/2476343002/diff/1/third_party/WebKit/public/platform/modules/payments/payment_app.mojom#newcode16 third_party/WebKit/public/platform/modules/payments/payment_app.mojom:16: array<string> enabled_methods; None of these strings are JSON ...
4 years, 1 month ago (2016-11-07 17:52:04 UTC) #16
Avi (use Gerrit)
lgtm
4 years, 1 month ago (2016-11-07 18:13:09 UTC) #17
please use gerrit instead
https://codereview.chromium.org/2476343002/diff/1/third_party/WebKit/public/platform/modules/payments/payment_app.mojom File third_party/WebKit/public/platform/modules/payments/payment_app.mojom (right): https://codereview.chromium.org/2476343002/diff/1/third_party/WebKit/public/platform/modules/payments/payment_app.mojom#newcode16 third_party/WebKit/public/platform/modules/payments/payment_app.mojom:16: array<string> enabled_methods; On 2016/11/07 17:52:04, Tom Sepez wrote: > ...
4 years, 1 month ago (2016-11-07 20:05:30 UTC) #18
please use gerrit instead
https://codereview.chromium.org/2476343002/diff/1/third_party/WebKit/public/platform/modules/payments/payment_app.mojom File third_party/WebKit/public/platform/modules/payments/payment_app.mojom (right): https://codereview.chromium.org/2476343002/diff/1/third_party/WebKit/public/platform/modules/payments/payment_app.mojom#newcode1 third_party/WebKit/public/platform/modules/payments/payment_app.mojom:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 1 month ago (2016-11-07 20:06:08 UTC) #19
zino
Thank you for review. I moved the mojom file to component/payments. (and changed namespace from ...
4 years, 1 month ago (2016-11-07 22:32:08 UTC) #22
haraken
modules/ LGTM on my side.
4 years, 1 month ago (2016-11-08 02:06:57 UTC) #31
jkarlin
Looks good with one question. https://codereview.chromium.org/2476343002/diff/40001/content/browser/payments/payment_app_context.cc File content/browser/payments/payment_app_context.cc (right): https://codereview.chromium.org/2476343002/diff/40001/content/browser/payments/payment_app_context.cc#newcode57 content/browser/payments/payment_app_context.cc:57: services_[service] = base::WrapUnique(service); Prefer ...
4 years, 1 month ago (2016-11-08 13:48:53 UTC) #34
zino
Thank you for review. I left a comment. If I'm missing something, please correct me. ...
4 years, 1 month ago (2016-11-08 14:34:22 UTC) #39
jkarlin
lgtm with nits, see 'git cl lint' warnings below: content/browser/payments/payment_app_context.cc:56: Add #include <utility> for move ...
4 years, 1 month ago (2016-11-08 14:45:03 UTC) #40
zino
I've just fixed the lint errors. Thanks!
4 years, 1 month ago (2016-11-08 14:56:22 UTC) #41
please use gerrit instead
lgtm
4 years, 1 month ago (2016-11-08 20:44:31 UTC) #46
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/2476343002/100001
4 years, 1 month ago (2016-11-08 23:28:20 UTC) #49
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-08 23:36:51 UTC) #51
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 23:41:53 UTC) #53
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ef456add5796bfdae498c3de4f4e8e2607d5173a
Cr-Commit-Position: refs/heads/master@{#430760}

Powered by Google App Engine
This is Rietveld 408576698