Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4247)

Unified Diff: base/threading/platform_thread_android.cc

Issue 1845753006: Don't create redundant ThreadData for Worker Threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/threading/platform_thread_android.cc
diff --git a/base/threading/platform_thread_android.cc b/base/threading/platform_thread_android.cc
index fd5e54d8af961fe03c90d3bd6c7b61b111aa6f13..3c4a2c49d60f3b3a455d7cefd0d9eaaf263f6170 100644
--- a/base/threading/platform_thread_android.cc
+++ b/base/threading/platform_thread_android.cc
@@ -61,9 +61,9 @@ bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority) {
} // namespace internal
-void PlatformThread::SetName(const std::string& name) {
+void PlatformThread::SetName(const std::string& name, bool is_worker_thread) {
ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name);
- tracked_objects::ThreadData::InitializeThreadContext(name);
+ tracked_objects::ThreadData::InitializeThreadContext(name, is_worker_thread);
// Like linux, on android we can get the thread names to show up in the
// debugger by setting the process name for the LWP.

Powered by Google App Engine
This is Rietveld 408576698