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

Unified Diff: base/single_thread_task_runner.h

Issue 1942053002: Deletes base::MessageLoop::set_thread_name(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implements SingleThreadTaskRunner::GetThreadName 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: base/single_thread_task_runner.h
diff --git a/base/single_thread_task_runner.h b/base/single_thread_task_runner.h
index 6e9319314894c3f8ed52269c9e526c96fa92e6d5..7778c52d13d9aebad382a6ab44ba8453df275027 100644
--- a/base/single_thread_task_runner.h
+++ b/base/single_thread_task_runner.h
@@ -29,6 +29,9 @@ class BASE_EXPORT SingleThreadTaskRunner : public SequencedTaskRunner {
return RunsTasksOnCurrentThread();
}
+ // Returns the name of the thread this TaskRunner is associated with.
+ virtual const char* GetThreadName() const = 0;
jam 2016/05/06 16:50:23 premature optimization to return const char* inste
alokp 2016/05/07 04:14:05 Done.
+
protected:
~SingleThreadTaskRunner() override {}
};

Powered by Google App Engine
This is Rietveld 408576698