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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptRunner.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/dom/ScriptRunner.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptRunner.cpp b/third_party/WebKit/Source/core/dom/ScriptRunner.cpp
index e13964f26371e58184c4b824ae379d0eeef9157c..51ed26ccd986e9fbab8b2c461d9fe789422f9ef1 100644
--- a/third_party/WebKit/Source/core/dom/ScriptRunner.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptRunner.cpp
@@ -38,8 +38,7 @@ namespace blink {
ScriptRunner::ScriptRunner(Document* document)
: m_document(document),
- m_taskRunner(
- TaskRunnerHelper::get(TaskType::Networking, document)->clone()),
+ m_taskRunner(TaskRunnerHelper::get(TaskType::Networking, document)),
m_numberOfInOrderScriptsWithPendingNotification(0),
m_isSuspended(false) {
DCHECK(document);
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunner.h ('k') | third_party/WebKit/Source/core/dom/TaskRunnerHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698