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

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

Issue 2645613006: Worker: Stop using ExecutionContextTask on WorkerLoaderProxy::postTaskToWorkerGlobalScope (Closed)
Patch Set: address review comments 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/WorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
index 6b9fdb892abd266bb2abf9029b819d9dcde32864..a428a432428e7e3e24d8455437df7bb8f924c786 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -199,6 +199,13 @@ void WorkerThread::postTask(const WebTraceLocation& location,
WTF::passed(std::move(task))));
}
+void WorkerThread::postTask(const WebTraceLocation& location,
+ std::unique_ptr<WTF::CrossThreadClosure> task) {
+ std::unique_ptr<ExecutionContextTask> wrappedTask = createCrossThreadTask(
+ &WTF::CrossThreadClosure::operator(), WTF::passed(std::move(task)));
+ postTask(location, std::move(wrappedTask));
+}
+
void WorkerThread::appendDebuggerTask(
std::unique_ptr<CrossThreadClosure> task) {
DCHECK(isMainThread());
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThread.h ('k') | third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698