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

Unified Diff: Source/modules/fetch/DataConsumerTee.cpp

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing #include Created 5 years, 3 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
« no previous file with comments | « Source/modules/fetch/DataConsumerHandleUtil.cpp ('k') | Source/modules/webaudio/AbstractAudioContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/DataConsumerTee.cpp
diff --git a/Source/modules/fetch/DataConsumerTee.cpp b/Source/modules/fetch/DataConsumerTee.cpp
index af7d950a17fbc90a88dec6b9fe47428a495a5c05..857c8551b318f9eb00ada5b39bc97ca7dddd8239 100644
--- a/Source/modules/fetch/DataConsumerTee.cpp
+++ b/Source/modules/fetch/DataConsumerTee.cpp
@@ -184,7 +184,7 @@ public:
}
ASSERT(m_readerThread);
if (!m_readerThread->isCurrentThread()) {
- m_readerThread->postTask(FROM_HERE, new Task(threadSafeBind(&DestinationContext::notify, this)));
+ m_readerThread->taskRunner()->postTask(FROM_HERE, new Task(threadSafeBind(&DestinationContext::notify, this)));
return;
}
}
@@ -271,7 +271,7 @@ public:
// We need to use threadSafeBind here to retain the context. Note
// |context()| return value is of type DestinationContext*, not
// PassRefPtr<DestinationContext>.
- Platform::current()->currentThread()->postTask(FROM_HERE, new Task(threadSafeBind(&DestinationContext::notify, context())));
+ Platform::current()->currentThread()->taskRunner()->postTask(FROM_HERE, new Task(threadSafeBind(&DestinationContext::notify, context())));
}
}
~DestinationReader() override
« no previous file with comments | « Source/modules/fetch/DataConsumerHandleUtil.cpp ('k') | Source/modules/webaudio/AbstractAudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698