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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.cpp

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: Inside modules use V8PerIsolateData::mainThreadIsolate() instead of blink::mainThreadIsolate() Created 4 years, 2 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: 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;

Powered by Google App Engine
This is Rietveld 408576698