Index: third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp |
index b2910615f698b009d27336188fee3d499ff1da03..c9c2cbdf1fdff6a3bb35fe07d66c27cb3311f1ed 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp |
@@ -46,6 +46,7 @@ |
#include "core/page/Page.h" |
#include "core/workers/MainThreadWorkletGlobalScope.h" |
#include "core/workers/WorkerGlobalScope.h" |
+#include "core/workers/WorkerThread.h" |
namespace blink { |
@@ -147,7 +148,7 @@ InstrumentingAgents* instrumentingAgentsFor(WorkerGlobalScope* workerGlobalScope |
{ |
if (!workerGlobalScope) |
return nullptr; |
- if (WorkerInspectorController* controller = workerGlobalScope->workerInspectorController()) |
+ if (WorkerInspectorController* controller = workerGlobalScope->thread()->workerInspectorController()) |
return controller->instrumentingAgents(); |
return nullptr; |
} |