Chromium Code Reviews| Index: base/run_loop.h |
| diff --git a/base/run_loop.h b/base/run_loop.h |
| index 635018f434ec1a69c331366d80506ab2dc6a2ce0..077d097ba9a2a35c6ec51d017f588b9f195e48c0 100644 |
| --- a/base/run_loop.h |
| +++ b/base/run_loop.h |
| @@ -10,6 +10,7 @@ |
| #include "base/macros.h" |
| #include "base/memory/weak_ptr.h" |
| #include "base/message_loop/message_loop.h" |
| +#include "base/threading/thread_checker.h" |
| #include "build/build_config.h" |
| namespace base { |
| @@ -105,6 +106,8 @@ class BASE_EXPORT RunLoop { |
| // that we should quit Run once it becomes idle. |
| bool quit_when_idle_received_; |
| + base::ThreadChecker thread_checker_; |
|
Nico
2016/12/02 01:10:35
should this be in an #if DCHECK_IS_ON() block?
Alexander Semashko
2016/12/02 10:47:34
It won't compile this way: code inside DCHECK's st
|
| + |
| // WeakPtrFactory for QuitClosure safety. |
| base::WeakPtrFactory<RunLoop> weak_factory_; |