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

Unified Diff: components/scheduler/base/task_queue_impl.cc

Issue 1942053002: Deletes base::MessageLoop::set_thread_name(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed media_unittests Created 4 years, 7 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: components/scheduler/base/task_queue_impl.cc
diff --git a/components/scheduler/base/task_queue_impl.cc b/components/scheduler/base/task_queue_impl.cc
index c3f1d8a00d478fff5de3826d5bca312c711afd12..9df02ead032941aedc9da05cb85581a4e3d28e09 100644
--- a/components/scheduler/base/task_queue_impl.cc
+++ b/components/scheduler/base/task_queue_impl.cc
@@ -4,6 +4,7 @@
#include "components/scheduler/base/task_queue_impl.h"
+#include "base/threading/thread_id_name_manager.h"
#include "base/trace_event/blame_context.h"
#include "components/scheduler/base/task_queue_manager.h"
#include "components/scheduler/base/task_queue_manager_delegate.h"
@@ -157,6 +158,11 @@ bool TaskQueueImpl::PostNonNestableDelayedTask(
return PostDelayedTaskImpl(from_here, task, delay, TaskType::NON_NESTABLE);
}
+std::string TaskQueueImpl::GetThreadName() const {
+ base::AutoLock lock(any_thread_lock_);
+ return base::ThreadIdNameManager::GetInstance()->GetName(thread_id_);
+}
+
bool TaskQueueImpl::PostImmediateTaskImpl(
const tracked_objects::Location& from_here,
const base::Closure& task,

Powered by Google App Engine
This is Rietveld 408576698