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

Unified Diff: base/tracked_objects.h

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/tracked_objects.h
diff --git a/base/tracked_objects.h b/base/tracked_objects.h
index 168b17db045a429234c3ae403622a9217adf3ad8..7bf2cd0c6cfe66682e5c9df81cee05ea366bb2b4 100644
--- a/base/tracked_objects.h
+++ b/base/tracked_objects.h
@@ -452,7 +452,8 @@ class BASE_EXPORT ThreadData {
// This is used by all threads that have names, and should be explicitly
// set *before* any births on the threads have taken place. It is generally
// only used by the message loop, which has a well defined thread name.
- static void InitializeThreadContext(const std::string& suggested_name);
+ static void InitializeThreadContext(const std::string& suggested_name,
+ bool is_worker_thread = false);
// Using Thread Local Store, find the current instance for collecting data.
// If an instance does not exist, construct one (and remember it for use on

Powered by Google App Engine
This is Rietveld 408576698