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

Unified Diff: mojo/edk/system/channel_posix.cc

Issue 2695593009: Use the location where FileDescriptorWatcher is created to track the libevent handlers (Closed)
Patch Set: fix mac. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dbus/bus.cc ('k') | net/base/address_tracker_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/channel_posix.cc
diff --git a/mojo/edk/system/channel_posix.cc b/mojo/edk/system/channel_posix.cc
index f4687562800c3d2d51c54c85ffa0d800b7454084..fb43b85d877a944dd50843ed2c8bea5d9431b1ab 100644
--- a/mojo/edk/system/channel_posix.cc
+++ b/mojo/edk/system/channel_posix.cc
@@ -210,14 +210,16 @@ class ChannelPosix : public Channel,
void StartOnIOThread() {
DCHECK(!read_watcher_);
DCHECK(!write_watcher_);
- read_watcher_.reset(new base::MessageLoopForIO::FileDescriptorWatcher);
+ read_watcher_.reset(
+ new base::MessageLoopForIO::FileDescriptorWatcher(FROM_HERE));
base::MessageLoop::current()->AddDestructionObserver(this);
if (handle_.get().needs_connection) {
base::MessageLoopForIO::current()->WatchFileDescriptor(
handle_.get().handle, false /* persistent */,
base::MessageLoopForIO::WATCH_READ, read_watcher_.get(), this);
} else {
- write_watcher_.reset(new base::MessageLoopForIO::FileDescriptorWatcher);
+ write_watcher_.reset(
+ new base::MessageLoopForIO::FileDescriptorWatcher(FROM_HERE));
base::MessageLoopForIO::current()->WatchFileDescriptor(
handle_.get().handle, true /* persistent */,
base::MessageLoopForIO::WATCH_READ, read_watcher_.get(), this);
« no previous file with comments | « dbus/bus.cc ('k') | net/base/address_tracker_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698