DescriptionReparent 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().
This relands http://crrev.com/272839 (reverted by http://crrev.com/272858), and
fixes the breakage in
ServiceWorkerDispatcherHostTest.EarlyContextDeletion. The breakage happened
because I changed ContextWrapper::Shutdown to always PostTask instead of
running inline when CurrentlyOn(BrowserThread::IO). I haven't uncovered why the
breakage only happened on slow bots.
BUG=368570
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273184
Patch Set 1 #Patch Set 2 : Make sure the ContextCore is destroyed before checking that messages fail #Messages
Total messages: 13 (0 generated)
|