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

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

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: +DISALLOW_COPY_AND_ASSIGN for win build fix Created 3 years, 11 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/WorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
index 4ce3ed58eccf8cc5390c6d7e7f650e401148091d..c7a2b0740a3bdb0a4e9d0e93551936f14a17a807 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
@@ -317,11 +317,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