DescriptionMove use of ShutdownWatcherHelper after early return
The ShutdownWatcherHelper is only needed if we don't early return,
additionally the early return triggers a DCHECK because
ShutdownWatcherHelper gets destroyed on the UI thread, triggering a
threading assertion because it ends up calling Join().
Also add ScopedAllowIO, in case Terminate fails. If SessionEnding returns we're going to be destroyed by the OS anyway, so we don't really care about any additional IO.
BUG=none
TEST=none
R=jam@chromium.org
Committed: https://crrev.com/0e07a14f1d8515fb5802c03e7c30dfe0bae4a87d
Cr-Commit-Position: refs/heads/master@{#383365}
Patch Set 1 #Patch Set 2 : moar #
Messages
Total messages: 9 (4 generated)
|