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

Unified Diff: Source/bindings/core/v8/WorkerScriptController.cpp

Issue 400153002: Change WokerThread to use a blink::WebThread. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use blink-side postDelayedTask instead of chromium Timer. Created 6 years, 5 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: Source/bindings/core/v8/WorkerScriptController.cpp
diff --git a/Source/bindings/core/v8/WorkerScriptController.cpp b/Source/bindings/core/v8/WorkerScriptController.cpp
index c2aa7245c2c853ec8c2f6a8d0f177748a0a2da70..94f3870f63c5a18a2ffea0e2d68c1f0ee966a43c 100644
--- a/Source/bindings/core/v8/WorkerScriptController.cpp
+++ b/Source/bindings/core/v8/WorkerScriptController.cpp
@@ -53,7 +53,6 @@
#include "core/workers/WorkerThread.h"
#include "platform/heap/ThreadState.h"
#include "public/platform/Platform.h"
-#include "public/platform/WebWorkerRunLoop.h"
#include <v8.h>
namespace blink {
@@ -149,10 +148,10 @@ WorkerScriptController::~WorkerScriptController()
m_world->dispose();
- // The corresponding call to didStartWorkerRunLoop is in
- // WorkerThread::workerThread().
+ // The corresponding call to didStartWorkerThread is in
+ // WorkerThread::initialize().
// See http://webkit.org/b/83104#c14 for why this is here.
- blink::Platform::current()->didStopWorkerRunLoop(blink::WebWorkerRunLoop(&m_workerGlobalScope.thread()->runLoop()));
+ blink::Platform::current()->didStopWorkerThread(m_workerGlobalScope.thread()->webThread());
if (isContextInitialized())
m_scriptState->disposePerContextData();

Powered by Google App Engine
This is Rietveld 408576698