| Index: base/threading/platform_thread_linux.cc
|
| diff --git a/base/threading/platform_thread_linux.cc b/base/threading/platform_thread_linux.cc
|
| index b72fb5bb24b499bc1cac4faf72ac99b7b8be5c28..9f7437418a7299ec6ab92d80b1be6735f6b9b9fa 100644
|
| --- a/base/threading/platform_thread_linux.cc
|
| +++ b/base/threading/platform_thread_linux.cc
|
| @@ -70,7 +70,7 @@ bool GetThreadPriorityForPlatform(PlatformThreadHandle handle,
|
| } // namespace internal
|
|
|
| // static
|
| -void PlatformThread::SetName(const char* name) {
|
| +void PlatformThread::SetName(const std::string& name) {
|
| ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name);
|
| tracked_objects::ThreadData::InitializeThreadContext(name);
|
|
|
| @@ -87,7 +87,7 @@ void PlatformThread::SetName(const char* name) {
|
| // Note that glibc also has a 'pthread_setname_np' api, but it may not be
|
| // available everywhere and it's only benefit over using prctl directly is
|
| // that it can set the name of threads other than the current thread.
|
| - int err = prctl(PR_SET_NAME, name);
|
| + int err = prctl(PR_SET_NAME, name.c_str());
|
| // We expect EPERM failures in sandboxed processes, just ignore those.
|
| if (err < 0 && errno != EPERM)
|
| DPLOG(ERROR) << "prctl(PR_SET_NAME)";
|
|
|