Index: base/threading/thread.cc |
=================================================================== |
--- base/threading/thread.cc (revision 104925) |
+++ base/threading/thread.cc (working copy) |
@@ -8,6 +8,7 @@ |
#include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
#include "base/threading/thread_local.h" |
#include "base/synchronization/waitable_event.h" |
+#include "base/tracked_objects.h" |
namespace base { |
@@ -151,6 +152,9 @@ |
ANNOTATE_THREAD_NAME(name_.c_str()); // Tell the name to race detector. |
message_loop.set_thread_name(name_); |
message_loop_ = &message_loop; |
+#if defined(TRACK_ALL_TASK_OBJECTS) |
+ tracked_objects::ThreadData::FactoryGet(name_.c_str()); |
+#endif // TRACK_ALL_TASK_OBJECTS |
// Let the thread do extra initialization. |
// Let's do this before signaling we are started. |