| Index: base/threading/platform_thread_freebsd.cc
|
| diff --git a/base/threading/platform_thread_freebsd.cc b/base/threading/platform_thread_freebsd.cc
|
| index 7ba4eedccbaf540168e0fe45875b991718e06e49..f4fded0ebb2e11dfc41aeebf93005aa0f3f5985d 100644
|
| --- a/base/threading/platform_thread_freebsd.cc
|
| +++ b/base/threading/platform_thread_freebsd.cc
|
| @@ -69,7 +69,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);
|
|
|
| @@ -80,7 +80,7 @@ void PlatformThread::SetName(const char* name) {
|
| // killall to stop working.
|
| if (PlatformThread::CurrentId() == getpid())
|
| return;
|
| - setproctitle("%s", name);
|
| + setproctitle("%s", name.c_str());
|
| #endif // !defined(OS_NACL)
|
| }
|
|
|
|
|