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

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

Issue 2741643003: Replace WorkerGlobalScope::postTask with WorkerThread::postTask (Closed)
Patch Set: missppelling; include cleanup Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/core/workers/WorkerThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp b/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
index c35f6ce28f49f99b5474e916a022158b9175058a..8d576192466cbded41044d2aaaac12cfe4ea8fd3 100644
--- a/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
@@ -26,11 +26,10 @@
#include "core/workers/WorkerEventQueue.h"
-#include "core/dom/ExecutionContextTask.h"
-#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/workers/WorkerGlobalScope.h"
+#include "core/workers/WorkerThread.h"
namespace blink {
@@ -58,10 +57,10 @@ bool WorkerEventQueue::enqueueEvent(Event* event) {
probe::asyncTaskScheduled(event->target()->getExecutionContext(),
event->type(), event);
m_pendingEvents.insert(event);
- m_workerGlobalScope->postTask(
- TaskType::UnspecedTimer, BLINK_FROM_HERE,
- createSameThreadTask(&WorkerEventQueue::dispatchEvent,
- wrapPersistent(this), wrapWeakPersistent(event)));
+ m_workerGlobalScope->thread()->postTask(
+ BLINK_FROM_HERE,
+ WTF::bind(&WorkerEventQueue::dispatchEvent, wrapPersistent(this),
+ wrapWeakPersistent(event)));
return true;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/WorkerThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698