| Index: third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| index 3a7332a8a4e21786ab42e66192e3a5c695a291c1..cbb9ed20a955da86d364e4ce82b179769a07b11c 100644
|
| --- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| @@ -116,11 +116,6 @@ static Mutex& threadSetMutex() {
|
| return mutex;
|
| }
|
|
|
| -static HashSet<WorkerThread*>& workerThreads() {
|
| - DEFINE_STATIC_LOCAL(HashSet<WorkerThread*>, threads, ());
|
| - return threads;
|
| -}
|
| -
|
| WorkerThreadLifecycleContext::WorkerThreadLifecycleContext() {
|
| DCHECK(isMainThread());
|
| }
|
| @@ -309,6 +304,12 @@ unsigned WorkerThread::workerThreadCount() {
|
| return workerThreads().size();
|
| }
|
|
|
| +HashSet<WorkerThread*>& WorkerThread::workerThreads() {
|
| + DCHECK(isMainThread());
|
| + DEFINE_STATIC_LOCAL(HashSet<WorkerThread*>, threads, ());
|
| + return threads;
|
| +}
|
| +
|
| PlatformThreadId WorkerThread::platformThreadId() {
|
| if (!m_requestedToStart)
|
| return 0;
|
|
|