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

Unified Diff: base/run_loop.h

Issue 2537893002: Add thread checking to RunLoop, deprecate MessageLoopRunner. (Closed)
Patch Set: Fix errors caught by ThreadChecker. Created 4 years 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/run_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | base/run_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698