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

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

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: mac fix Created 4 years 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/WorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
index 275b02450e5101f351596f9621d0ea5f49f69922..557a539278e69b22bca16d66a01f153bdca7cbd6 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
@@ -314,11 +314,8 @@ WorkerGlobalScope::WorkerGlobalScope(
m_closing(false),
m_eventQueue(WorkerEventQueue::create(this)),
m_workerClients(workerClients),
- m_timers(Platform::current()
- ->currentThread()
- ->scheduler()
- ->timerTaskRunner()
- ->clone()),
+ m_timers(
+ Platform::current()->currentThread()->scheduler()->timerTaskRunner()),
m_timeOrigin(timeOrigin),
m_lastPendingErrorEventId(0) {
InstanceCounters::incrementCounter(

Powered by Google App Engine
This is Rietveld 408576698