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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp

Issue 2831843002: Revert of Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: 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/web/WebEmbeddedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
index 54bc980e83fd65163630a613a2978d2b414e7a68..6acd6833d14aa1989cea9188bbb255a3c6f07ea9 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -34,7 +34,6 @@
#include "bindings/core/v8/SourceLocation.h"
#include "core/dom/Document.h"
#include "core/dom/SecurityContext.h"
-#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/inspector/ConsoleMessage.h"
#include "core/loader/FrameLoadRequest.h"
@@ -275,8 +274,7 @@
std::unique_ptr<WTF::CrossThreadClosure> task) {
if (asked_to_terminate_ || !worker_thread_)
return;
- TaskRunnerHelper::Get(TaskType::kNetworking, worker_thread_.get())
- ->PostTask(location, std::move(task));
+ worker_thread_->PostTask(location, std::move(task));
}
ThreadableLoadingContext* WebEmbeddedWorkerImpl::GetThreadableLoadingContext() {

Powered by Google App Engine
This is Rietveld 408576698