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

Unified Diff: third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp

Issue 2806623004: Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: wip Created 3 years, 8 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/loader/ThreadableLoaderTest.cpp
diff --git a/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp b/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp
index b24118d759bcde6e30249c2a1f8a9114e7be69a9..9f26469b0f66848e74c908bbfb6e413e0191875f 100644
--- a/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp
+++ b/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp
@@ -5,6 +5,7 @@
#include "core/loader/ThreadableLoader.h"
#include <memory>
+#include "core/dom/TaskRunnerHelper.h"
#include "core/loader/DocumentThreadableLoader.h"
#include "core/loader/ThreadableLoaderClient.h"
#include "core/loader/ThreadableLoadingContext.h"
@@ -330,7 +331,8 @@ class WorkerThreadableLoaderTestHelper : public ThreadableLoaderTestHelper,
const WebTraceLocation& location,
std::unique_ptr<WTF::CrossThreadClosure> task) override {
DCHECK(m_workerThread);
- m_workerThread->postTask(location, std::move(task));
+ TaskRunnerHelper::get(TaskType::Networking, m_workerThread.get())
+ ->postTask(location, std::move(task));
}
ThreadableLoadingContext* getThreadableLoadingContext() override {

Powered by Google App Engine
This is Rietveld 408576698