| Index: base/threading/platform_thread.h
|
| diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
|
| index 72da93bf56d4fc984c35c5f49ef2a69fd475be00..60b871e5835c5aee91db13ae54d5d6297fdc6d1d 100644
|
| --- a/base/threading/platform_thread.h
|
| +++ b/base/threading/platform_thread.h
|
| @@ -142,9 +142,9 @@ class BASE_EXPORT PlatformThread {
|
| // Sleeps for the specified duration.
|
| static void Sleep(base::TimeDelta duration);
|
|
|
| - // Sets the thread name visible to debuggers/tools. This has no effect
|
| - // otherwise.
|
| - static void SetName(const std::string& name);
|
| + // Sets the thread name visible to debuggers/tools. This will try to
|
| + // initialize the context for current thread unless it's a WorkerThread.
|
| + static void SetName(const std::string& name, bool is_worker_thread = false);
|
|
|
| // Gets the thread name, if previously set by SetName.
|
| static const char* GetName();
|
|
|