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

Issue 140743012: Start EmbeddedWorker during registration - take 2 (Closed)

Created:
6 years, 11 months ago by alecflett
Modified:
6 years, 10 months ago
Reviewers:
kinuko
CC:
chromium-reviews, tzik, jam, nhiroki, joi+watch-content_chromium.org, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

Start EmbeddedWorker during registration - take 2 This adds the starting of the server worker to the registration job pipeline. Eventually this will also dispatch the 'install' event. A second version of this, based on kinuko's work Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249544 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249828

Patch Set 1 #

Total comments: 3

Patch Set 2 : Clean up existing registration case #

Total comments: 20

Patch Set 3 : Remove SWProvider id stuff, fix job_unittest #

Patch Set 4 : More progress - trying to get dispatcher_host tests working #

Patch Set 5 : Allow multiple workers per child process. All tests passing. #

Patch Set 6 : Clean up log messages, tests #

Total comments: 19

Patch Set 7 : Address review comments #

Patch Set 8 : Update to ToT #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -114 lines) Patch
M content/browser/service_worker/embedded_worker_registry.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/service_worker/embedded_worker_registry.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -7 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.h View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 3 chunks +8 lines, -3 lines 1 comment Download
M content/browser/service_worker/service_worker_context_unittest.cc View 1 2 3 4 5 6 9 chunks +23 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 1 2 3 4 5 6 10 chunks +38 lines, -25 lines 0 comments Download
M content/browser/service_worker/service_worker_job_coordinator.h View 1 3 chunks +7 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_job_coordinator.cc View 1 2 3 4 5 4 chunks +22 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_job_unittest.cc View 1 2 3 4 5 6 26 chunks +98 lines, -54 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.h View 1 4 chunks +18 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 3 4 5 6 7 chunks +57 lines, -7 lines 1 comment Download
M content/browser/service_worker/service_worker_registration.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_registration.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 39 (0 generated)
alecflett
Here I've taken http://crrev.com/139093002 and rebased it on top of http://crrev.com/141413004 kinuko, your start/stop observer ...
6 years, 11 months ago (2014-01-18 01:08:49 UTC) #1
kinuko
I see, your patch seems to have exposed a few important missing parts in the ...
6 years, 11 months ago (2014-01-20 09:39:08 UTC) #2
kinuko
https://codereview.chromium.org/140743012/diff/1/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/140743012/diff/1/content/browser/service_worker/service_worker_register_job.cc#newcode84 content/browser/service_worker/service_worker_register_job.cc:84: register_new)); While revisiting the installation flow this just caught ...
6 years, 11 months ago (2014-01-28 06:34:55 UTC) #3
alecflett
On 2014/01/28 06:34:55, kinuko wrote: > https://codereview.chromium.org/140743012/diff/1/content/browser/service_worker/service_worker_register_job.cc > File content/browser/service_worker/service_worker_register_job.cc (right): > > https://codereview.chromium.org/140743012/diff/1/content/browser/service_worker/service_worker_register_job.cc#newcode84 > ...
6 years, 10 months ago (2014-01-28 23:19:42 UTC) #4
alecflett
Ok new patch is up. the basic outstanding issues are excessive log messages (from my ...
6 years, 10 months ago (2014-01-29 01:22:58 UTC) #5
kinuko
On 2014/01/29 01:22:58, alecflett wrote: > Ok new patch is up. the basic outstanding issues ...
6 years, 10 months ago (2014-01-29 02:21:30 UTC) #6
kinuko
https://codereview.chromium.org/140743012/diff/50001/content/browser/service_worker/embedded_worker_instance.cc File content/browser/service_worker/embedded_worker_instance.cc (right): https://codereview.chromium.org/140743012/diff/50001/content/browser/service_worker/embedded_worker_instance.cc#newcode21 content/browser/service_worker/embedded_worker_instance.cc:21: LOG(ERROR) << "Starting EmbeddedWorkerInstance"; You could add these logs ...
6 years, 10 months ago (2014-01-29 09:56:20 UTC) #7
alecflett
ok, still not done here - I was able to fix a lot of tests ...
6 years, 10 months ago (2014-01-30 01:51:12 UTC) #8
alecflett
this patch has been rebased on top of http://crrev.com/150443002 I had to change one assumption ...
6 years, 10 months ago (2014-02-04 00:14:32 UTC) #9
alecflett
ok, this patch is ready to go, finally. As it mentions, we're skipping the install/activate ...
6 years, 10 months ago (2014-02-04 01:14:13 UTC) #10
kinuko
Ok, let's land this and hack on it. lgtm https://codereview.chromium.org/140743012/diff/140001/content/browser/service_worker/embedded_worker_registry.cc File content/browser/service_worker/embedded_worker_registry.cc (right): https://codereview.chromium.org/140743012/diff/140001/content/browser/service_worker/embedded_worker_registry.cc#newcode94 content/browser/service_worker/embedded_worker_registry.cc:94: ...
6 years, 10 months ago (2014-02-04 03:37:52 UTC) #11
kinuko
https://codereview.chromium.org/140743012/diff/140001/content/browser/service_worker/service_worker_context_unittest.cc File content/browser/service_worker/service_worker_context_unittest.cc (right): https://codereview.chromium.org/140743012/diff/140001/content/browser/service_worker/service_worker_context_unittest.cc#newcode61 content/browser/service_worker/service_worker_context_unittest.cc:61: helper_->SimulateAddProcess(embedded_worker_id, render_process_id_); Btw you can just remove line 56-61 ...
6 years, 10 months ago (2014-02-04 11:41:31 UTC) #12
alecflett
The CQ bit was checked by alecflett@chromium.org
6 years, 10 months ago (2014-02-04 20:08:19 UTC) #13
alecflett
https://codereview.chromium.org/140743012/diff/140001/content/browser/service_worker/embedded_worker_registry.cc File content/browser/service_worker/embedded_worker_registry.cc (right): https://codereview.chromium.org/140743012/diff/140001/content/browser/service_worker/embedded_worker_registry.cc#newcode94 content/browser/service_worker/embedded_worker_registry.cc:94: if (found != worker_process_map_.end()) { On 2014/02/04 03:37:53, kinuko ...
6 years, 10 months ago (2014-02-04 20:09:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/140743012/260001
6 years, 10 months ago (2014-02-04 20:14:19 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=223733
6 years, 10 months ago (2014-02-04 21:14:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/140743012/260001
6 years, 10 months ago (2014-02-04 22:32:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/140743012/260001
6 years, 10 months ago (2014-02-05 01:12:27 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-05 06:05:02 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=118336
6 years, 10 months ago (2014-02-05 06:05:02 UTC) #20
alecflett
The CQ bit was checked by alecflett@chromium.org
6 years, 10 months ago (2014-02-05 18:00:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/140743012/540001
6 years, 10 months ago (2014-02-05 18:09:40 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-05 20:55:22 UTC) #23
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=118593
6 years, 10 months ago (2014-02-05 20:55:23 UTC) #24
alecflett
The CQ bit was checked by alecflett@chromium.org
6 years, 10 months ago (2014-02-05 23:02:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/140743012/540001
6 years, 10 months ago (2014-02-05 23:04:43 UTC) #26
alecflett
I was going to manually commit until I saw that ServiceWorkerVersionBrowserTest.StartNotFound is failing on linux-aura, ...
6 years, 10 months ago (2014-02-06 00:28:36 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-06 00:44:28 UTC) #28
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=198670
6 years, 10 months ago (2014-02-06 00:44:28 UTC) #29
kinuko
On 2014/02/06 00:44:28, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 10 months ago (2014-02-06 08:43:35 UTC) #30
alecflett
On 2014/02/06 08:43:35, kinuko wrote: > On 2014/02/06 00:44:28, I haz the power (commit-bot) wrote: ...
6 years, 10 months ago (2014-02-06 19:03:48 UTC) #31
alecflett
The CQ bit was checked by alecflett@chromium.org
6 years, 10 months ago (2014-02-06 23:28:01 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/140743012/540001
6 years, 10 months ago (2014-02-06 23:29:07 UTC) #33
commit-bot: I haz the power
Change committed as 249544
6 years, 10 months ago (2014-02-07 00:09:22 UTC) #34
alph
A revert of this CL has been created in https://codereview.chromium.org/137233019/ by alph@chromium.org. The reason for ...
6 years, 10 months ago (2014-02-07 11:44:34 UTC) #35
kinuko
Alec: please see comments below for the crash cause in chromium side. We also need ...
6 years, 10 months ago (2014-02-07 13:59:04 UTC) #36
alecflett
The CQ bit was checked by alecflett@chromium.org
6 years, 10 months ago (2014-02-07 22:20:56 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alecflett@chromium.org/140743012/540001
6 years, 10 months ago (2014-02-07 22:34:11 UTC) #38
commit-bot: I haz the power
6 years, 10 months ago (2014-02-07 22:40:20 UTC) #39
Message was sent while issue was closed.
Change committed as 249828

Powered by Google App Engine
This is Rietveld 408576698