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

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

Issue 1163923005: Fix crash in inspector-protocol/debugger/debugger-pause-dedicated-worker.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed printf Created 5 years, 7 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 | « Source/bindings/core/v8/MainThreadDebugger.h ('k') | Source/bindings/core/v8/V8Debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/MainThreadDebugger.cpp
diff --git a/Source/bindings/core/v8/MainThreadDebugger.cpp b/Source/bindings/core/v8/MainThreadDebugger.cpp
index 9ea430131406a0f6deeb19bc66b0456fdf62cd4b..6c7f017214848d4c4641a164056c4e0957958acb 100644
--- a/Source/bindings/core/v8/MainThreadDebugger.cpp
+++ b/Source/bindings/core/v8/MainThreadDebugger.cpp
@@ -42,6 +42,7 @@
#include "core/frame/LocalFrame.h"
#include "core/frame/UseCounter.h"
#include "core/inspector/InspectorInstrumentation.h"
+#include "core/inspector/InspectorTaskRunner.h"
#include "core/inspector/InspectorTraceEvents.h"
#include "core/inspector/ScriptDebugListener.h"
#include "core/page/Page.h"
@@ -67,6 +68,7 @@ MainThreadDebugger::MainThreadDebugger(PassOwnPtr<ClientMessageLoop> clientMessa
: ScriptDebuggerBase(isolate, V8Debugger::create(isolate, this))
, m_clientMessageLoop(clientMessageLoop)
, m_pausedFrame(nullptr)
+ , m_taskRunner(adoptPtr(new InspectorTaskRunner(isolate)))
{
MutexLocker locker(creationMutex());
ASSERT(!s_instance);
@@ -136,11 +138,11 @@ MainThreadDebugger* MainThreadDebugger::instance()
return s_instance;
}
-void MainThreadDebugger::interruptMainThreadAndRun(PassOwnPtr<V8Debugger::Task> task)
+void MainThreadDebugger::interruptMainThreadAndRun(PassOwnPtr<InspectorTaskRunner::Task> task)
{
MutexLocker locker(creationMutex());
if (s_instance)
- s_instance->debugger()->interruptAndRun(task);
+ s_instance->m_taskRunner->interruptAndRun(task);
}
ScriptDebugListener* MainThreadDebugger::getDebugListenerForContext(v8::Local<v8::Context> context)
« no previous file with comments | « Source/bindings/core/v8/MainThreadDebugger.h ('k') | Source/bindings/core/v8/V8Debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698