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

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

Issue 2456733002: DevTools: Make WorkerThreadDebugger available for Worklets (Closed)
Patch Set: address review comments 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/WorkerBackingThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
index ac85e3f98d49f9bad4722e66f9558816d35a2b55..1382ae7b360f8f9dc89a3c56e081af1fbe859c3d 100644
--- a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
@@ -9,6 +9,7 @@
#include "bindings/core/v8/V8IdleTaskRunner.h"
#include "bindings/core/v8/V8Initializer.h"
#include "bindings/core/v8/V8PerIsolateData.h"
+#include "core/inspector/WorkerThreadDebugger.h"
#include "platform/CrossThreadFunctional.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/WebThreadSupportingGC.h"
@@ -78,6 +79,9 @@ void WorkerBackingThread::initialize() {
backingThread().platformThread().scheduler())));
if (m_isOwningThread)
Platform::current()->didStartWorkerThread();
+
+ V8PerIsolateData::from(m_isolate)->setThreadDebugger(
+ wrapUnique(new WorkerThreadDebugger(m_isolate)));
}
void WorkerBackingThread::shutdown() {

Powered by Google App Engine
This is Rietveld 408576698