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

Issue 2480153004: Revert of Remove MessageLoop destruction observer from mojo::Watcher. (Closed)

Created:
4 years, 1 month ago by xlai (Olivia)
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

Revert of Remove MessageLoop destruction observer from mojo::Watcher. (patchset #2 id:20001 of https://codereview.chromium.org/2475273003/ ) Reason for revert: 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%20Precise%20Leak/builds/1578 And this CL is the only CL in the build that touches on mojo watcher. Original issue's 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} TBR=rockot@chromium.org,yzshen@chromium.org,fdoray@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=604762 Committed: https://crrev.com/ee88cfeecda2a6fbc58ac7d2635e048ed39f28cf Cr-Commit-Position: refs/heads/master@{#430675}

Patch Set 1 #

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

Messages

Total messages: 7 (3 generated)
xlai (Olivia)
Created Revert of Remove MessageLoop destruction observer from mojo::Watcher.
4 years, 1 month ago (2016-11-08 19:04:02 UTC) #2
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/2480153004/1
4 years, 1 month ago (2016-11-08 19:04:37 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-08 19:05:46 UTC) #5
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 19:39:32 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ee88cfeecda2a6fbc58ac7d2635e048ed39f28cf
Cr-Commit-Position: refs/heads/master@{#430675}

Powered by Google App Engine
This is Rietveld 408576698