| Index: base/threading/platform_thread_posix.cc
|
| diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
|
| index 39a007316f783f541b1a92da04237aaa8955ad91..75704a053371572f096fd0e36277520ac680b995 100644
|
| --- a/base/threading/platform_thread_posix.cc
|
| +++ b/base/threading/platform_thread_posix.cc
|
| @@ -56,8 +56,10 @@ void* ThreadFunc(void* params) {
|
| if (!thread_params->joinable)
|
| base::ThreadRestrictions::SetSingletonAllowed(false);
|
|
|
| - if (thread_params->priority != ThreadPriority::NORMAL)
|
| - PlatformThread::SetCurrentThreadPriority(thread_params->priority);
|
| + // Threads on linux/android may inherit their priority from the thread
|
| + // where they were created. This explicitly sets the priority of all new
|
| + // threads.
|
| + PlatformThread::SetCurrentThreadPriority(thread_params->priority);
|
| }
|
|
|
| ThreadIdNameManager::GetInstance()->RegisterThread(
|
|
|