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

Issue 2497983002: PaymentApp: Implement PaymentAppManager.setManifest(). (Closed)

Created:
4 years, 1 month ago by zino
Modified:
4 years, 1 month ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, wjmaclean, tzik, jam, abarth-chromium, darin-cc_chromium.org, blink-reviews, blink-worker-reviews_chromium.org, nhiroki, rouslan+payments_chromium.org, haraken, michaeln, shimazu+serviceworker_chromium.org, serviceworker-reviews, Aaron Boodman, kinuko+serviceworker, horo+watch_chromium.org, darin (slow to review), sebsg+paymentswatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentApp: Implement PaymentAppManager.setManifest(). The method is to register payment app with the user agent for future use associating manifest’s attributes(e.g. label and icon) set with the payment app for user reference. The manifest data is stored into service worker storage by associated service worker. This is a series of patches to implement setManifest() in PaymentAppManager: https://codereview.chromium.org/2476343002/ This CL includes browser side implementation and unit/layout tests. Related spec link: https://w3c.github.io/webpayments-payment-apps-api/#set-manifest BUG=661608 TEST=payment_app_manager_unittest.cc TEST=payment-app-manager.html Committed: https://crrev.com/5c1f7a29337a6636a4329a9d16c4061bb51980c8 Cr-Commit-Position: refs/heads/master@{#433119}

Patch Set 1 #

Total comments: 10

Patch Set 2 : PaymentApp: Implement PaymentAppManager.setManifest(). #

Total comments: 40

Patch Set 3 : PaymentApp: Implement PaymentAppManager.setManifest(). #

Total comments: 1

Patch Set 4 : PaymentApp: Implement PaymentAppManager.setManifest(). #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -19 lines) Patch
M components/payments/payment_app.mojom View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A content/browser/payments/BUILD.gn View 1 chunk +11 lines, -0 lines 0 comments Download
A content/browser/payments/payment_app.proto View 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/payments/payment_app_context.h View 1 3 chunks +7 lines, -5 lines 0 comments Download
M content/browser/payments/payment_app_context.cc View 1 3 chunks +7 lines, -6 lines 0 comments Download
M content/browser/payments/payment_app_manager.h View 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/payments/payment_app_manager.cc View 1 2 2 chunks +66 lines, -1 line 0 comments Download
A content/browser/payments/payment_app_manager_unittest.cc View 1 2 3 1 chunk +150 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.h View 1 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/payments/payment-app-manager.html View 1 chunk +52 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp View 1 2 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 47 (22 generated)
zino
rouslan@ for payments jkarlin@ for service worker and storage Tom Sepez@ for mojom PTAL
4 years, 1 month ago (2016-11-14 16:50:34 UTC) #5
jkarlin
Happy to look but note that I'm not an OWNER for either service_workers or storage.
4 years, 1 month ago (2016-11-14 17:29:44 UTC) #7
zino
On 2016/11/14 17:29:44, jkarlin wrote: > Happy to look but note that I'm not an ...
4 years, 1 month ago (2016-11-14 18:03:07 UTC) #9
Tom Sepez
mojom LGTM (adding error codes).
4 years, 1 month ago (2016-11-14 18:07:27 UTC) #10
please use gerrit instead
I am missing the big picture of where you're going with this patch. Can you ...
4 years, 1 month ago (2016-11-14 20:44:00 UTC) #13
nhiroki
serviceworker part looks good. Added some minor comments. https://codereview.chromium.org/2497983002/diff/1/content/browser/payments/payment_app_context.cc File content/browser/payments/payment_app_context.cc (right): https://codereview.chromium.org/2497983002/diff/1/content/browser/payments/payment_app_context.cc#newcode20 content/browser/payments/payment_app_context.cc:20: : ...
4 years, 1 month ago (2016-11-15 02:32:19 UTC) #14
zino
nhiroki@, Thank you for review. I addressed your comments. https://codereview.chromium.org/2497983002/diff/1/content/browser/payments/payment_app_context.cc File content/browser/payments/payment_app_context.cc (right): https://codereview.chromium.org/2497983002/diff/1/content/browser/payments/payment_app_context.cc#newcode20 content/browser/payments/payment_app_context.cc:20: ...
4 years, 1 month ago (2016-11-15 17:57:38 UTC) #16
zino
rouslan@, I updated CL description and I wrote a simple design docs for it. https://docs.google.com/document/d/1rWsvKQAwIboN2ZDuYYAkfce8GF27twi4UHTt0hcbyxQ/edit#heading=h.klbi1jla9inc ...
4 years, 1 month ago (2016-11-15 18:00:16 UTC) #17
zino
+ Avi@ for BUILD.gn and content/browser/storage_partition_impl.* PTAL
4 years, 1 month ago (2016-11-15 18:15:55 UTC) #20
Avi (use Gerrit)
lgtm stampity stamp
4 years, 1 month ago (2016-11-15 18:18:04 UTC) #21
please use gerrit instead
lgtm % comments https://codereview.chromium.org/2497983002/diff/20001/content/browser/payments/payment_app_manager.cc File content/browser/payments/payment_app_manager.cc (right): https://codereview.chromium.org/2497983002/diff/20001/content/browser/payments/payment_app_manager.cc#newcode18 content/browser/payments/payment_app_manager.cc:18: Usually we don't put newlines between ...
4 years, 1 month ago (2016-11-15 20:04:27 UTC) #22
nhiroki
SW lgtm
4 years, 1 month ago (2016-11-15 22:50:20 UTC) #23
zino
Thank you for review. https://codereview.chromium.org/2497983002/diff/20001/content/browser/payments/payment_app_manager.cc File content/browser/payments/payment_app_manager.cc (right): https://codereview.chromium.org/2497983002/diff/20001/content/browser/payments/payment_app_manager.cc#newcode18 content/browser/payments/payment_app_manager.cc:18: On 2016/11/15 20:04:26, rouslan wrote: ...
4 years, 1 month ago (2016-11-16 18:12:59 UTC) #24
zino
rouslan@, I left two comments. If you agree, I'll land this patch :) Thanks.
4 years, 1 month ago (2016-11-16 18:19:29 UTC) #25
please use gerrit instead
Please add that comment and submit the patch. https://codereview.chromium.org/2497983002/diff/40001/content/browser/payments/payment_app_manager_unittest.cc File content/browser/payments/payment_app_manager_unittest.cc (right): https://codereview.chromium.org/2497983002/diff/40001/content/browser/payments/payment_app_manager_unittest.cc#newcode114 content/browser/payments/payment_app_manager_unittest.cc:114: PaymentAppManager* ...
4 years, 1 month ago (2016-11-16 18:22:05 UTC) #26
zino
On 2016/11/16 18:22:05, rouslan wrote: > Please add that comment and submit the patch. > ...
4 years, 1 month ago (2016-11-16 18:35:12 UTC) #27
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/2497983002/60001
4 years, 1 month ago (2016-11-16 18:36:01 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/273768)
4 years, 1 month ago (2016-11-16 19:33:58 UTC) #32
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/2497983002/60001
4 years, 1 month ago (2016-11-17 00:03:16 UTC) #34
commit-bot: I haz the power
Failed to apply patch for content/browser/BUILD.gn: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-17 02:59:32 UTC) #36
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/2497983002/80001
4 years, 1 month ago (2016-11-17 19:43:24 UTC) #39
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/334349)
4 years, 1 month ago (2016-11-18 00:29:55 UTC) #41
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/2497983002/80001
4 years, 1 month ago (2016-11-18 01:18:56 UTC) #43
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-18 05:30:07 UTC) #45
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 05:41:34 UTC) #47
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5c1f7a29337a6636a4329a9d16c4061bb51980c8
Cr-Commit-Position: refs/heads/master@{#433119}

Powered by Google App Engine
This is Rietveld 408576698