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

Unified Diff: remoting/base/auto_thread.cc

Issue 2391093002: remoting: Fix data race in auto_thread (Closed)
Patch Set: Created 4 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/auto_thread.cc
diff --git a/remoting/base/auto_thread.cc b/remoting/base/auto_thread.cc
index 0e56ab5437006edf8b1d85df378e034380515ffc..be4235dde0b218883dca607fca680b50d747a58b 100644
--- a/remoting/base/auto_thread.cc
+++ b/remoting/base/auto_thread.cc
@@ -211,7 +211,7 @@ void AutoThread::ThreadMain() {
#if defined(OS_POSIX) && !defined(OS_NACL)
// Allow threads running a MessageLoopForIO to use FileDescriptorWatcher.
std::unique_ptr<base::FileDescriptorWatcher> file_descriptor_watcher;
- if (startup_data_->loop_type == base::MessageLoop::TYPE_IO) {
+ if (message_loop.type() == base::MessageLoop::TYPE_IO) {
DCHECK_EQ(&message_loop, base::MessageLoopForIO::current());
file_descriptor_watcher.reset(
new base::FileDescriptorWatcher(base::MessageLoopForIO::current()));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698