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

Unified Diff: base/files/file_descriptor_watcher_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 | « no previous file | base/message_loop/message_loop_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_descriptor_watcher_posix.cc
diff --git a/base/files/file_descriptor_watcher_posix.cc b/base/files/file_descriptor_watcher_posix.cc
index 49ac5d43a4a6080fbb18e0d63138c2480232b0dc..9746e35ea70ac880f564db0adc20139c4ab14f63 100644
--- a/base/files/file_descriptor_watcher_posix.cc
+++ b/base/files/file_descriptor_watcher_posix.cc
@@ -92,7 +92,10 @@ FileDescriptorWatcher::Controller::Watcher::Watcher(
WeakPtr<Controller> controller,
MessageLoopForIO::Mode mode,
int fd)
- : controller_(controller), mode_(mode), fd_(fd) {
+ : file_descriptor_watcher_(FROM_HERE),
+ controller_(controller),
+ mode_(mode),
+ fd_(fd) {
DCHECK(callback_task_runner_);
thread_checker_.DetachFromThread();
}
« no previous file with comments | « no previous file | base/message_loop/message_loop_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698