Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Issue 2475273003: Remove MessageLoop destruction observer from mojo::Watcher. (Closed)

Created:
4 years, 1 month ago by fdoray
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, oshima+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -90 lines) Patch
M ipc/ipc_sync_channel.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M mojo/public/cpp/system/tests/watcher_unittest.cc View 3 chunks +4 lines, -31 lines 0 comments Download
M mojo/public/cpp/system/watcher.h View 4 chunks +0 lines, -12 lines 0 comments Download
M mojo/public/cpp/system/watcher.cc View 5 chunks +0 lines, -39 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
fdoray
PTAL
4 years, 1 month ago (2016-11-07 21:03:18 UTC) #8
yzshen1
+Ken as reviewer
4 years, 1 month ago (2016-11-07 21:37:19 UTC) #10
yzshen1
On 2016/11/07 21:37:19, yzshen1 wrote: > +Ken as reviewer Please note that mojo::Watcher is not ...
4 years, 1 month ago (2016-11-07 21:40:19 UTC) #11
Ken Rockot(use gerrit already)
There are a few MojoResult values that are currently unused. I don't see much value ...
4 years, 1 month ago (2016-11-07 21:50:01 UTC) #12
fdoray
PTAnL On 2016/11/07 21:50:01, Ken Rockot wrote: > There are a few MojoResult values that ...
4 years, 1 month ago (2016-11-08 14:54:27 UTC) #14
Ken Rockot(use gerrit already)
LGTM. Thanks!
4 years, 1 month ago (2016-11-08 15:13:22 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2475273003/20001
4 years, 1 month ago (2016-11-08 15:20:18 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-08 16:57:50 UTC) #19
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/da6bd89a95fc8c444720f3d76ac67b91dfd70280 Cr-Commit-Position: refs/heads/master@{#430637}
4 years, 1 month ago (2016-11-08 17:02:52 UTC) #21
xlai (Olivia)
4 years, 1 month ago (2016-11-08 19:04:02 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2480153004/ by xlai@chromium.org.

The reason for reverting is: I'm suspecting that this CL is causing these two
layout tests to crash on WebKit Linux Precise Leak bot:
broadcastchannel/blobs.html
broadcastchannel/workers.html

because they are crashing on mojo::SyncHandleRegistry in a check for watcher
pointer.

https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Precis...

And this CL is the only CL in the build that touches on mojo watcher. 

.

Powered by Google App Engine
This is Rietveld 408576698