| Index: base/threading/platform_thread_android.cc
|
| diff --git a/base/threading/platform_thread_android.cc b/base/threading/platform_thread_android.cc
|
| index a31f65918fe621849d980dadd75ba8c63237fd15..11e5e2e3c870d25d79d205e7dcd349239a02eac2 100644
|
| --- a/base/threading/platform_thread_android.cc
|
| +++ b/base/threading/platform_thread_android.cc
|
| @@ -64,7 +64,7 @@ bool GetThreadPriorityForPlatform(PlatformThreadHandle handle,
|
|
|
| } // namespace internal
|
|
|
| -void PlatformThread::SetName(const char* name) {
|
| +void PlatformThread::SetName(const std::string& name) {
|
| ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name);
|
| tracked_objects::ThreadData::InitializeThreadContext(name);
|
|
|
| @@ -76,7 +76,7 @@ void PlatformThread::SetName(const char* name) {
|
| return;
|
|
|
| // Set the name for the LWP (which gets truncated to 15 characters).
|
| - int err = prctl(PR_SET_NAME, name);
|
| + int err = prctl(PR_SET_NAME, name.c_str());
|
| if (err < 0 && errno != EPERM)
|
| DPLOG(ERROR) << "prctl(PR_SET_NAME)";
|
| }
|
|
|