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

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

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: Rebase only Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThread.h ('k') | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThread.h ('k') | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698