Index: remoting/base/auto_thread.cc |
diff --git a/remoting/base/auto_thread.cc b/remoting/base/auto_thread.cc |
index d79af49faa6976fdd14eb4bbb903e6176af5cc6e..6175e8119b70eb8e38462d29b32f69b2672a411c 100644 |
--- a/remoting/base/auto_thread.cc |
+++ b/remoting/base/auto_thread.cc |
@@ -112,14 +112,14 @@ AutoThread::~AutoThread() { |
DCHECK(!startup_data_); |
// Wait for the thread to exit. |
- if (thread_) { |
+ if (!thread_.isNull()) { |
base::PlatformThread::Join(thread_); |
} |
} |
scoped_refptr<AutoThreadTaskRunner> AutoThread::StartWithType( |
base::MessageLoop::Type type) { |
- DCHECK(!thread_); |
+ DCHECK(thread_.isNull()); |
#if defined(OS_WIN) |
DCHECK(com_init_type_ != COM_INIT_STA || type == base::MessageLoop::TYPE_UI); |
#endif |