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

Unified Diff: Source/core/inspector/WorkerRuntimeAgent.cpp

Issue 400153002: Change WokerThread to use a blink::WebThread. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix issues from jochen's review. 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/core/inspector/WorkerRuntimeAgent.cpp
diff --git a/Source/core/inspector/WorkerRuntimeAgent.cpp b/Source/core/inspector/WorkerRuntimeAgent.cpp
index 65f72d93ca710136490d7ddd166fadfd8baf704c..5978eeb340ecaf7a72e605800f43f43636df6b42 100644
--- a/Source/core/inspector/WorkerRuntimeAgent.cpp
+++ b/Source/core/inspector/WorkerRuntimeAgent.cpp
@@ -37,7 +37,6 @@
#include "core/inspector/InstrumentingAgents.h"
#include "core/inspector/WorkerDebuggerAgent.h"
#include "core/workers/WorkerGlobalScope.h"
-#include "core/workers/WorkerRunLoop.h"
#include "core/workers/WorkerThread.h"
namespace blink {
@@ -106,10 +105,12 @@ void WorkerRuntimeAgent::willEvaluateWorkerScript(WorkerGlobalScope* context, in
m_paused = true;
MessageQueueWaitResult result;
+ context->thread()->willEnterNestedLoop();
do {
- result = context->thread()->runLoop().runDebuggerTask();
+ result = context->thread()->runDebuggerTask();
// Keep waiting until execution is resumed.
} while (result == MessageQueueMessageReceived && m_paused);
+ context->thread()->didLeaveNestedLoop();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698