Chromium Code Reviews
DescriptionRemove MessageLoop destruction observer from mojo::Watcher.
mojo::Watcher currently registers itself as a destruction observer
of the MessageLoop on which it is instantiated. When it is notified
that the MessageLoop is being destroyed, it invokes its callback
with MOJO_RESULT_ABORTED.
This CL removes the MessageLoop destruction observer from
mojo::Watcher. This allows mojo::Watcher to be instantiated on a
thread that doesn't run a MessageLoop (e.g. TaskScheduler threads).
No existing code depends on the MOJO_RESULT_ABORTED notification.
BUG=604762
Committed: https://crrev.com/da6bd89a95fc8c444720f3d76ac67b91dfd70280
Cr-Commit-Position: refs/heads/master@{#430637}
Patch Set 1 #Patch Set 2 : do not remove MOJO_RESULT_ABORTED #
Messages
Total messages: 22 (12 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||