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

Issue 2646313002: PaymentApp: Implement invokePaymentApp() in renderer side. (Closed)

Created:
3 years, 11 months ago by zino
Modified:
3 years, 10 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, mlamouri+watch-content_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, haraken, kinuko+serviceworker, horo+watch_chromium.org, blink-reviews, darin-cc_chromium.org, kinuko+watch, tzik, falken+watch_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentApp: Implement invokePaymentApp() in renderer side. This is the final patch of a series of three that implements invokePaymentApp(). - 1/2: https://codereview.chromium.org/2610163002/ (browser side) - 2/2: This patch (renderer side) After this patch, it is possible to invoke a selected payment app if calling the invokePaymentApp() method in PaymentRequest UI implementation. This CL also includes a test to verify such behavior. BUG=661608 TEST=payment_app_browsertest.cc Review-Url: https://codereview.chromium.org/2646313002 Cr-Commit-Position: refs/heads/master@{#448906} Committed: https://chromium.googlesource.com/chromium/src/+/c4545cd9e65fd3a2276e1676ed57c85d1bb7631a

Patch Set 1 #

Total comments: 17

Patch Set 2 : browser test #

Patch Set 3 : browser test #

Patch Set 4 : rebase #

Patch Set 5 : PaymentApp: Implement invokePaymentApp() in renderer side. #

Total comments: 5

Patch Set 6 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+429 lines, -7 lines) Patch
A content/browser/payments/payment_app_browsertest.cc View 1 2 3 4 5 1 chunk +116 lines, -0 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/service_worker/OWNERS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_type_converters.h View 1 2 3 2 chunks +36 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_type_converters.cc View 1 2 3 4 1 chunk +97 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 6 chunks +24 lines, -1 line 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A content/test/data/payments/payment_app.js View 1 1 chunk +42 lines, -0 lines 0 comments Download
A content/test/data/payments/payment_app_invocation.html View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A content/test/data/payments/payment_app_window.html View 1 1 chunk +10 lines, -0 lines 0 comments Download
A content/test/data/payments/result_queue.js View 1 2 3 4 5 1 chunk +52 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp View 1 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 54 (33 generated)
zino
PTAL nhiroki@ for service worker. Tom Sepez@ for type converter. (Currently we can not use ...
3 years, 11 months ago (2017-01-23 09:19:00 UTC) #4
tommyt
Looking good! Thanks Jinho :) https://codereview.chromium.org/2646313002/diff/1/content/common/service_worker/service_worker_type_converters.cc File content/common/service_worker/service_worker_type_converters.cc (right): https://codereview.chromium.org/2646313002/diff/1/content/common/service_worker/service_worker_type_converters.cc#newcode97 content/common/service_worker/service_worker_type_converters.cc:97: output.currencySystem = blink::WebString::fromUTF8(input->value); input->currency_system ...
3 years, 11 months ago (2017-01-23 09:35:18 UTC) #5
nhiroki
lgtm https://codereview.chromium.org/2646313002/diff/1/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2646313002/diff/1/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode89 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:89: // When handling a notificationclick event, we want ...
3 years, 11 months ago (2017-01-23 10:10:16 UTC) #6
tommyt
https://codereview.chromium.org/2646313002/diff/1/content/renderer/service_worker/service_worker_context_client.cc File content/renderer/service_worker/service_worker_context_client.cc (right): https://codereview.chromium.org/2646313002/diff/1/content/renderer/service_worker/service_worker_context_client.cc#newcode890 content/renderer/service_worker/service_worker_context_client.cc:890: int request_id = context_->payment_request_event_callbacks.Add( I think it might be ...
3 years, 11 months ago (2017-01-23 12:54:31 UTC) #7
Tom Sepez
Type converters LGTM after fixing tommyt's comment.
3 years, 11 months ago (2017-01-23 18:25:43 UTC) #8
please use gerrit instead
lgtm
3 years, 11 months ago (2017-01-23 21:08:21 UTC) #9
falken
Some questions. It's a bit difficult to follow the flow of the test. https://codereview.chromium.org/2646313002/diff/1/third_party/WebKit/LayoutTests/http/tests/payments/chromium/payment-app-invocation.html File ...
3 years, 11 months ago (2017-01-24 02:00:51 UTC) #11
zino
This issue is pending due to https://codereview.chromium.org/2647243002/. If the issue is resolved, I'll restart this ...
3 years, 10 months ago (2017-01-24 16:39:24 UTC) #12
zino
PTAL owners, I don't want to defer this CL anymore. So, I wrote a new ...
3 years, 10 months ago (2017-02-01 09:24:48 UTC) #29
tommyt
https://codereview.chromium.org/2646313002/diff/1/content/common/service_worker/service_worker_type_converters.cc File content/common/service_worker/service_worker_type_converters.cc (right): https://codereview.chromium.org/2646313002/diff/1/content/common/service_worker/service_worker_type_converters.cc#newcode97 content/common/service_worker/service_worker_type_converters.cc:97: output.currencySystem = blink::WebString::fromUTF8(input->value); On 2017/02/01 09:24:48, zino wrote: > ...
3 years, 10 months ago (2017-02-01 09:42:00 UTC) #32
zino
tommyt@, Thank you for review. Tom Sepez@, I modified OWNERS file additionally because the presubmit ...
3 years, 10 months ago (2017-02-01 10:07:05 UTC) #35
tommyt
lgtm
3 years, 10 months ago (2017-02-01 10:08:28 UTC) #36
zino
falken@, Gentle Ping.
3 years, 10 months ago (2017-02-03 14:10:08 UTC) #39
falken
service_worker lgtm the comments below are non OWNER comments https://codereview.chromium.org/2646313002/diff/80001/content/browser/payments/payment_app_browsertest.cc File content/browser/payments/payment_app_browsertest.cc (right): https://codereview.chromium.org/2646313002/diff/80001/content/browser/payments/payment_app_browsertest.cc#newcode104 content/browser/payments/payment_app_browsertest.cc:104: ...
3 years, 10 months ago (2017-02-04 22:02:10 UTC) #40
zino
Thank you for review. https://codereview.chromium.org/2646313002/diff/80001/content/browser/payments/payment_app_browsertest.cc File content/browser/payments/payment_app_browsertest.cc (right): https://codereview.chromium.org/2646313002/diff/80001/content/browser/payments/payment_app_browsertest.cc#newcode104 content/browser/payments/payment_app_browsertest.cc:104: IN_PROC_BROWSER_TEST_F(PaymentAppBrowserTest, SW) { On 2017/02/04 ...
3 years, 10 months ago (2017-02-07 17:56:38 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/2646313002/100001
3 years, 10 months ago (2017-02-07 17:57:06 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/358578)
3 years, 10 months ago (2017-02-07 18:03:33 UTC) #46
zino
+Avi@ for content/common/DEPS PTAL
3 years, 10 months ago (2017-02-07 18:10:16 UTC) #48
Avi (use Gerrit)
On 2017/02/07 18:10:16, zino wrote: > +Avi@ for content/common/DEPS > > PTAL DEPS LGTM.
3 years, 10 months ago (2017-02-08 04:00:55 UTC) #49
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/2646313002/100001
3 years, 10 months ago (2017-02-08 04:33:46 UTC) #51
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 04:40:24 UTC) #54
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/c4545cd9e65fd3a2276e1676ed57...

Powered by Google App Engine
This is Rietveld 408576698