summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/workers/AbstractWorker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/workers/AbstractWorker.cpp')
-rw-r--r--Source/WebCore/workers/AbstractWorker.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/WebCore/workers/AbstractWorker.cpp b/Source/WebCore/workers/AbstractWorker.cpp
index 10bc95f..18a94b5 100644
--- a/Source/WebCore/workers/AbstractWorker.cpp
+++ b/Source/WebCore/workers/AbstractWorker.cpp
@@ -38,7 +38,7 @@
#include "Event.h"
#include "EventException.h"
#include "EventNames.h"
-#include "InspectorController.h"
+#include "InspectorInstrumentation.h"
#include "ScriptExecutionContext.h"
#include "SecurityOrigin.h"
@@ -56,10 +56,7 @@ AbstractWorker::~AbstractWorker()
void AbstractWorker::onDestroyWorker()
{
-#if ENABLE(INSPECTOR)
- if (InspectorController* inspector = scriptExecutionContext() ? scriptExecutionContext()->inspectorController() : 0)
- inspector->didDestroyWorker(asID());
-#endif
+ InspectorInstrumentation::didDestroyWorker(scriptExecutionContext(), asID());
}
void AbstractWorker::contextDestroyed()