Index: base/threading/platform_thread_win.cc |
=================================================================== |
--- base/threading/platform_thread_win.cc (revision 109824) |
+++ base/threading/platform_thread_win.cc (working copy) |
@@ -8,6 +8,7 @@ |
#include "base/logging.h" |
#include "base/threading/thread_local.h" |
#include "base/threading/thread_restrictions.h" |
+#include "base/tracked_objects.h" |
#include "base/win/windows_version.h" |
@@ -100,6 +101,7 @@ |
// static |
void PlatformThread::SetName(const char* name) { |
current_thread_name.Set(const_cast<char*>(name)); |
+ tracked_objects::ThreadData::InitializeThreadContext(name); |
// The debugger needs to be around to catch the name in the exception. If |
// there isn't a debugger, we are just needlessly throwing an exception. |