service worker: Remove EmbeddedWorkerRegistry::Shutdown().
Part of an effort to remove EmbeddedWorkerRegistry which shouldn't be needed since mojofication. Shutdown() sent a Stop IPC on each worker when the registry is destructed, which happens only during browser shutdown or a fatal error with the service worker system. The Stop IPC is not needed since ServiceWorkerContext is also destroyed in this case, which means all hosts are destroyed and the Mojo connection to the workers are destroyed. The workers in the renderer processes detect the destroyed connection and terminate. I thought this might affect the ServiceWorker.WorkerStopped UMA, but it shouldn't because the registry is refcounted and owned by EmbeddedWorkerInstances, so it doesn't destruct until those are already destructed, so no host is alive to record the UMA. Bug: 931084 Change-Id: Id8c92f59e6602e7d95bf876858f4b771bed19636 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1504472Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Commit-Queue: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#637985}
Showing
Please register or sign in to comment