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

Issue 2490623005: Remove InterfaceRegistry/Provider from service workers (Closed)

Created:
4 years, 1 month ago by shimazu
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, Ben Goodger (Google), blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, horo+watch_chromium.org, iclelland+watch_chromium.org, jam, jkarlin+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+watch, kinuko+serviceworker, michaeln, mlamouri+watch-content_chromium.org, nhiroki, Peter Beverloo, qsr+mojo_chromium.org, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove InterfaceRegistry/Provider from service workers This patch is to remove unnecessary InterfaceProvider usage. Events, who are currently the only user of InterfaceProvider in EWInstance, will be triggered via InterfacePtr which is passed at the starting up. BUG=664019 Committed: https://crrev.com/317dd7b50bd2f138715fac044dcc44ce070ccbfc Cr-Commit-Position: refs/heads/master@{#434434}

Patch Set 1 #

Total comments: 10

Patch Set 2 : review #

Total comments: 4

Patch Set 3 : review #

Total comments: 16

Patch Set 4 : review #

Patch Set 5 : rebase/fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -672 lines) Patch
M content/browser/background_sync/background_sync_manager.cc View 3 chunks +11 lines, -14 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance.h View 1 5 chunks +5 lines, -15 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance.cc View 1 9 chunks +14 lines, -55 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance_unittest.cc View 1 2 3 20 chunks +92 lines, -70 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.h View 1 5 chunks +4 lines, -10 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 8 chunks +25 lines, -42 lines 0 comments Download
M content/browser/service_worker/service_worker_context_unittest.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 2 chunks +4 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_job_unittest.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 chunks +8 lines, -41 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 4 chunks +3 lines, -13 lines 0 comments Download
M content/browser/service_worker/service_worker_version_unittest.cc View 1 2 3 4 3 chunks +0 lines, -82 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/common/service_worker/embedded_worker.mojom View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/service_worker/embedded_worker_setup.mojom View 1 chunk +3 lines, -4 lines 0 comments Download
M content/common/service_worker/embedded_worker_start_params.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
D content/common/service_worker/fetch_event_dispatcher.mojom View 1 chunk +0 lines, -24 lines 0 comments Download
D content/common/service_worker/fetch_event_dispatcher.typemap View 1 chunk +0 lines, -20 lines 0 comments Download
A + content/common/service_worker/service_worker_event_dispatcher.mojom View 1 2 3 4 2 chunks +12 lines, -1 line 0 comments Download
A + content/common/service_worker/service_worker_event_dispatcher.typemap View 1 chunk +1 line, -1 line 0 comments Download
M content/common/typemaps.gni View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
D content/renderer/background_sync/OWNERS View 1 chunk +0 lines, -2 lines 0 comments Download
D content/renderer/background_sync/PRESUBMIT.py View 1 chunk +0 lines, -12 lines 0 comments Download
D content/renderer/background_sync/background_sync_client_impl.h View 1 2 3 4 1 chunk +0 lines, -39 lines 0 comments Download
D content/renderer/background_sync/background_sync_client_impl.cc View 1 2 3 4 1 chunk +0 lines, -51 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 2 chunks +5 lines, -9 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/service_worker/embedded_worker_instance_client_impl.h View 1 2 3 4 4 chunks +1 line, -13 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_instance_client_impl.cc View 1 2 3 4 3 chunks +7 lines, -19 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 6 chunks +26 lines, -19 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 18 chunks +51 lines, -83 lines 0 comments Download
M third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom View 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 44 (22 generated)
shimazu
ptal
4 years, 1 month ago (2016-11-10 05:36:58 UTC) #2
horo
Overall looks good. https://codereview.chromium.org/2490623005/diff/1/content/browser/service_worker/embedded_worker_instance.cc File content/browser/service_worker/embedded_worker_instance.cc (right): https://codereview.chromium.org/2490623005/diff/1/content/browser/service_worker/embedded_worker_instance.cc#newcode459 content/browser/service_worker/embedded_worker_instance.cc:459: void EmbeddedWorkerInstance::Start( I think this approach ...
4 years, 1 month ago (2016-11-11 02:17:27 UTC) #7
shimazu
thanks, updated. ptal again:) https://codereview.chromium.org/2490623005/diff/1/content/browser/service_worker/embedded_worker_instance.cc File content/browser/service_worker/embedded_worker_instance.cc (right): https://codereview.chromium.org/2490623005/diff/1/content/browser/service_worker/embedded_worker_instance.cc#newcode459 content/browser/service_worker/embedded_worker_instance.cc:459: void EmbeddedWorkerInstance::Start( On 2016/11/11 02:17:27, ...
4 years, 1 month ago (2016-11-17 22:23:38 UTC) #8
horo
lgtm https://codereview.chromium.org/2490623005/diff/20001/content/common/service_worker/embedded_worker_start_params.cc File content/common/service_worker/embedded_worker_start_params.cc (right): https://codereview.chromium.org/2490623005/diff/20001/content/common/service_worker/embedded_worker_start_params.cc#newcode9 content/common/service_worker/embedded_worker_start_params.cc:9: EmbeddedWorkerStartParams::EmbeddedWorkerStartParams() {}; nit: remove semicolon. https://codereview.chromium.org/2490623005/diff/20001/content/renderer/service_worker/service_worker_context_client.cc File content/renderer/service_worker/service_worker_context_client.cc ...
4 years, 1 month ago (2016-11-18 07:14:50 UTC) #9
shimazu
https://codereview.chromium.org/2490623005/diff/20001/content/common/service_worker/embedded_worker_start_params.cc File content/common/service_worker/embedded_worker_start_params.cc (right): https://codereview.chromium.org/2490623005/diff/20001/content/common/service_worker/embedded_worker_start_params.cc#newcode9 content/common/service_worker/embedded_worker_start_params.cc:9: EmbeddedWorkerStartParams::EmbeddedWorkerStartParams() {}; On 2016/11/18 07:14:49, horo wrote: > nit: ...
4 years, 1 month ago (2016-11-18 19:51:34 UTC) #10
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/2490623005/40001
4 years, 1 month ago (2016-11-18 19:52:35 UTC) #13
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/308511)
4 years, 1 month ago (2016-11-18 21:01:17 UTC) #15
shimazu
jkarlin@: PTAL at background_sync mkwst@: PTAL at mojoms ben@: PTAL at mainly render_thread_impl and could ...
4 years, 1 month ago (2016-11-18 22:47:41 UTC) #17
dcheng
Nice cleanup! Just a few nits (and most of the comments are just for followup ...
4 years, 1 month ago (2016-11-22 07:59:04 UTC) #19
jkarlin
background_sync lgtm, thanks for this!
4 years, 1 month ago (2016-11-22 14:13:46 UTC) #20
Ben Goodger (Google)
render_thread_impl lgtm
4 years, 1 month ago (2016-11-22 18:48:47 UTC) #21
Mike West
Sorry, I was out sick; this change LGTM. That said, I agree with dcheng's comments. ...
4 years ago (2016-11-23 13:06:05 UTC) #22
falken
drive by nits (you don't need my lg) https://codereview.chromium.org/2490623005/diff/40001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2490623005/diff/40001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode295 content/browser/service_worker/service_worker_fetch_dispatcher.cc:295: // ...
4 years ago (2016-11-23 14:32:31 UTC) #24
shimazu
Thanks for your reviews! Fixed the nits. https://codereview.chromium.org/2490623005/diff/40001/content/browser/service_worker/embedded_worker_instance_unittest.cc File content/browser/service_worker/embedded_worker_instance_unittest.cc (right): https://codereview.chromium.org/2490623005/diff/40001/content/browser/service_worker/embedded_worker_instance_unittest.cc#newcode109 content/browser/service_worker/embedded_worker_instance_unittest.cc:109: new EmbeddedWorkerStartParams); ...
4 years ago (2016-11-24 06:47:32 UTC) #25
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/2490623005/60001
4 years ago (2016-11-24 06:48:04 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years ago (2016-11-24 08:49:02 UTC) #30
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/2490623005/60001
4 years ago (2016-11-24 23:56:57 UTC) #32
commit-bot: I haz the power
Failed to apply patch for content/common/BUILD.gn: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-11-25 01:00:12 UTC) #34
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/2490623005/80001
4 years ago (2016-11-25 01:44:10 UTC) #37
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/2490623005/80001
4 years ago (2016-11-25 03:17:57 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-25 04:56:20 UTC) #42
commit-bot: I haz the power
4 years ago (2016-11-25 04:58:56 UTC) #44
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/317dd7b50bd2f138715fac044dcc44ce070ccbfc
Cr-Commit-Position: refs/heads/master@{#434434}

Powered by Google App Engine
This is Rietveld 408576698