Index: mojo/common/handle_watcher.cc |
diff --git a/mojo/common/handle_watcher.cc b/mojo/common/handle_watcher.cc |
index aa637c40780c8527a1e48d625493f99a2e53cbad..af26b96cb6467b349ce23272b8dad9416c7c6b3d 100644 |
--- a/mojo/common/handle_watcher.cc |
+++ b/mojo/common/handle_watcher.cc |
@@ -197,6 +197,7 @@ WatcherID WatcherThreadManager::StartWatching( |
data.wait_flags = wait_flags; |
data.deadline = deadline; |
data.message_loop = base::MessageLoopProxy::current(); |
+ DCHECK_NE(static_cast<base::MessageLoopProxy*>(NULL), data.message_loop); |
// We outlive |thread_|, so it's safe to use Unretained() here. |
thread_.message_loop()->PostTask( |
FROM_HERE, |