| Index: base/threading/platform_thread_posix.cc
|
| diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
|
| index b1c0e9dba20d16bcdaafaa9a70fce3900a4efba8..43a42eca98a3e25414ee2e5847d15ad5bbfb44a7 100644
|
| --- a/base/threading/platform_thread_posix.cc
|
| +++ b/base/threading/platform_thread_posix.cc
|
| @@ -73,8 +73,16 @@ void* ThreadFunc(void* params) {
|
| PlatformThread::CurrentId());
|
| thread_params->handle_set.Signal();
|
|
|
| + ThreadIdNameManager::GetInstance()->RegisterThread(
|
| + PlatformThread::CurrentHandle().platform_handle(),
|
| + PlatformThread::CurrentId());
|
| +
|
| delegate->ThreadMain();
|
|
|
| + ThreadIdNameManager::GetInstance()->RemoveName(
|
| + PlatformThread::CurrentHandle().platform_handle(),
|
| + PlatformThread::CurrentId());
|
| +
|
| base::TerminateOnThread();
|
| return NULL;
|
| }
|
|
|