Chromium Code Reviews| Index: base/threading/platform_thread_linux.cc |
| diff --git a/base/threading/platform_thread_linux.cc b/base/threading/platform_thread_linux.cc |
| index 95ed32418ff49bdce1cfc91b846374000f62a4e3..6c1b83335d9075d49511de457b4c53007d4bbe8e 100644 |
| --- a/base/threading/platform_thread_linux.cc |
| +++ b/base/threading/platform_thread_linux.cc |
| @@ -66,9 +66,11 @@ bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority) { |
| } // namespace internal |
| // static |
| -void PlatformThread::SetName(const std::string& name) { |
| +void PlatformThread::SetName(const std::string& name, |
| + bool is_worker_thread) { |
|
Lei Zhang
2016/05/31 21:43:24
nit: fix on the previous line, just like all the o
|
| ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name); |
| - tracked_objects::ThreadData::InitializeThreadContext(name); |
| + if (!is_worker_thread) |
| + tracked_objects::ThreadData::InitializeThreadContext(name); |
| #if !defined(OS_NACL) |
| // On linux we can get the thread names to show up in the debugger by setting |