Chromium Code Reviews| 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 f03dfb3508ee3a50d82574df321b0017c5fc9281..bf0481272bf654a5791dce194eca322082a5630f 100644 |
| --- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp |
| +++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp |
| @@ -153,11 +153,6 @@ static Mutex& threadSetMutex() { |
| return mutex; |
| } |
| -static HashSet<WorkerThread*>& workerThreads() { |
| - DEFINE_STATIC_LOCAL(HashSet<WorkerThread*>, threads, ()); |
| - return threads; |
| -} |
| - |
| WorkerThreadLifecycleContext::WorkerThreadLifecycleContext() { |
| DCHECK(isMainThread()); |
| } |
| @@ -320,6 +315,11 @@ unsigned WorkerThread::workerThreadCount() { |
| return workerThreads().size(); |
| } |
| +HashSet<WorkerThread*>& WorkerThread::workerThreads() { |
|
nhiroki
2016/10/17 12:01:08
DCHECK(isMainThread());
leonhsl(Using Gerrit)
2016/10/18 10:03:52
Done.
|
| + DEFINE_STATIC_LOCAL(HashSet<WorkerThread*>, threads, ()); |
| + return threads; |
| +} |
| + |
| PlatformThreadId WorkerThread::platformThreadId() { |
| if (!m_requestedToStart) |
| return 0; |