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

Issue 292973003: Reparent SWProcessManager onto SWContextWrapper. (Closed)

Created:
6 years, 7 months ago by Jeffrey Yasskin
Modified:
6 years, 7 months ago
Reviewers:
falken, kinuko
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org, kinuko
Visibility:
Public.

Description

Reparent SWProcessManager onto SWContextWrapper. This will allow Wrapper::Shutdown to drop all process references synchronously in a future change, which will make it possible to shutdown Chrome with service workers running and without hitting the DCHECK in ProfileDestroyer::DestroyProfileWhenAppropriate(). BUG=368570 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272839

Patch Set 1 : Initial #

Total comments: 8

Patch Set 2 : Keep the ContextWrapper private withing the ContextCore. #

Patch Set 3 : Newline #

Patch Set 4 : Rebase on fixed embedded_worker_instance test, and clean up embedded_worker_instance. #

Messages

Total messages: 22 (0 generated)
Jeffrey Yasskin
This depends on http://crrev.com/292903002.
6 years, 7 months ago (2014-05-22 00:57:58 UTC) #1
Jeffrey Yasskin
Actually, ->falken to aid in his getting OWNERS here.
6 years, 7 months ago (2014-05-22 01:22:28 UTC) #2
michaeln
drive-by-comments https://codereview.chromium.org/292973003/diff/30001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (left): https://codereview.chromium.org/292973003/diff/30001/content/browser/service_worker/service_worker_context_core.h#oldcode115 content/browser/service_worker/service_worker_context_core.h:115: return process_manager_.get(); if this was implemented as return ...
6 years, 7 months ago (2014-05-22 01:43:41 UTC) #3
falken
lgtm https://codereview.chromium.org/292973003/diff/30001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): https://codereview.chromium.org/292973003/diff/30001/content/browser/service_worker/service_worker_context_core.h#newcode178 content/browser/service_worker/service_worker_context_core.h:178: base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; It's not from this patch, but ...
6 years, 7 months ago (2014-05-22 02:43:19 UTC) #4
Jeffrey Yasskin
Thanks. https://codereview.chromium.org/292973003/diff/30001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (left): https://codereview.chromium.org/292973003/diff/30001/content/browser/service_worker/service_worker_context_core.h#oldcode115 content/browser/service_worker/service_worker_context_core.h:115: return process_manager_.get(); On 2014/05/22 01:43:42, michaeln wrote: > ...
6 years, 7 months ago (2014-05-22 02:47:54 UTC) #5
michaeln1
> Unfortunately, it's not stale. The SWContextWrapper is refcounted, so it can be > destroyed ...
6 years, 7 months ago (2014-05-22 02:56:37 UTC) #6
Jeffrey Yasskin
+Kinuko for owners.
6 years, 7 months ago (2014-05-23 07:07:36 UTC) #7
Jeffrey Yasskin
The CQ bit was checked by jyasskin@chromium.org
6 years, 7 months ago (2014-05-25 19:58:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/292973003/110001
6 years, 7 months ago (2014-05-25 19:58:24 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-25 21:51:30 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-25 21:54:48 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77515)
6 years, 7 months ago (2014-05-25 21:54:49 UTC) #12
Jeffrey Yasskin
The CQ bit was checked by jyasskin@chromium.org
6 years, 7 months ago (2014-05-25 21:58:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/292973003/110001
6 years, 7 months ago (2014-05-25 21:58:16 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-25 22:01:42 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-25 22:05:25 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77518)
6 years, 7 months ago (2014-05-25 22:05:25 UTC) #17
Jeffrey Yasskin
The CQ bit was checked by jyasskin@chromium.org
6 years, 7 months ago (2014-05-25 22:55:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/292973003/110001
6 years, 7 months ago (2014-05-25 22:55:59 UTC) #19
commit-bot: I haz the power
Change committed as 272839
6 years, 7 months ago (2014-05-26 16:15:10 UTC) #20
jochen (gone - plz use gerrit)
A revert of this CL has been created in https://codereview.chromium.org/307443003/ by jochen@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-26 18:29:33 UTC) #21
jam
6 years, 7 months ago (2014-05-26 19:24:12 UTC) #22
Message was sent while issue was closed.
On 2014/05/26 18:29:33, jochen wrote:
> A revert of this CL has been created in
> https://codereview.chromium.org/307443003/ by mailto:jochen@chromium.org.
> 
> The reason for reverting is: I suspect this broke
> ServiceWorkerDispatcherHostTest.EarlyContextDeletion on linux.

just to confirm since I was looking at the tree, this revert did indeed fix the
test.

Powered by Google App Engine
This is Rietveld 408576698