DescriptionUse a window to catch WM_ENDSESSION.
Rejig the watcher to run a message loop on the main thread, and to
do the blocking wait on a dedicated background thread.
BUG=412384
Committed: https://crrev.com/e4462c0e439c489ad057060ba014d8899398c117
Cr-Commit-Position: refs/heads/master@{#311390}
Patch Set 1 #Patch Set 2 : Move method definitions out of class, add some comments. #
Total comments: 5
Patch Set 3 : Address Erik's comments. #Patch Set 4 : Merge to ToT. #Messages
Total messages: 8 (2 generated)
|