shared worker: Simplify telling devtools about start and stop of worker.
SharedWorkerHost was calling WorkedDestroyed at three callsites using two flags to determine when to do so. Use a RAII helper class to manage the state instead. One motiviation is fixing 830288 which is going to add more state to SharedWorkerHost (creating a host before calling start), so when to call WorkerDestroyed would get more complicated. Bug: 830288 Change-Id: Ie3f135d925091518b172a4afcd8c475656aa9db4 Reviewed-on: https://chromium-review.googlesource.com/1013360Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Commit-Queue: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#550958}
Showing
Please register or sign in to comment