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

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

Issue 2518073002: Worker: Use per-frame task runners from a worker thread (Closed)
Patch Set: rebase Created 4 years, 1 month 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/WorkerThreadTest.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp b/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
index fd0514d5ee075156b049b543199e96492406ea11..e96b1a3f44ceb3602e38a6ff567ad4699be25e85 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp
@@ -27,8 +27,10 @@ void waitForSignalTask(WorkerThread* workerThread,
EXPECT_TRUE(workerThread->isCurrentThread());
// Notify the main thread that the debugger task is waiting for the signal.
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(
- BLINK_FROM_HERE, crossThreadBind(&testing::exitRunLoop));
+ workerThread->workerReportingProxy()
+ .getParentFrameTaskRunners()
+ ->get(TaskType::Internal)
+ ->postTask(BLINK_FROM_HERE, crossThreadBind(&testing::exitRunLoop));
waitableEvent->wait();
}

Powered by Google App Engine
This is Rietveld 408576698