| Index: third_party/WebKit/Source/core/inspector/WorkerConsoleAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/WorkerConsoleAgent.cpp b/third_party/WebKit/Source/core/inspector/WorkerConsoleAgent.cpp
|
| index ce789006d80ce1d187b41f45174bc4d6eff85f11..4314f3e79d6e15d0dbf9b0d6b30f52c92b77a7fe 100644
|
| --- a/third_party/WebKit/Source/core/inspector/WorkerConsoleAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/WorkerConsoleAgent.cpp
|
| @@ -34,7 +34,7 @@
|
| #include "core/inspector/ConsoleMessageStorage.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| #include "core/workers/WorkerReportingProxy.h"
|
| -#include "core/workers/WorkerThread.h"
|
| +#include "core/workers/WorkerScript.h"
|
|
|
| namespace blink {
|
|
|
| @@ -57,7 +57,7 @@ DEFINE_TRACE(WorkerConsoleAgent)
|
| void WorkerConsoleAgent::enable(ErrorString* error)
|
| {
|
| InspectorConsoleAgent::enable(error);
|
| - m_workerGlobalScope->thread()->workerReportingProxy().postWorkerConsoleAgentEnabled();
|
| + m_workerGlobalScope->workerScript()->workerReportingProxy().postWorkerConsoleAgentEnabled();
|
| }
|
|
|
| void WorkerConsoleAgent::clearMessages(ErrorString*)
|
| @@ -72,12 +72,12 @@ ConsoleMessageStorage* WorkerConsoleAgent::messageStorage()
|
|
|
| void WorkerConsoleAgent::enableStackCapturingIfNeeded()
|
| {
|
| - ScriptController::setCaptureCallStackForUncaughtExceptions(m_workerGlobalScope->thread()->isolate(), true);
|
| + ScriptController::setCaptureCallStackForUncaughtExceptions(m_workerGlobalScope->workerScript()->isolate(), true);
|
| }
|
|
|
| void WorkerConsoleAgent::disableStackCapturingIfNeeded()
|
| {
|
| - ScriptController::setCaptureCallStackForUncaughtExceptions(m_workerGlobalScope->thread()->isolate(), false);
|
| + ScriptController::setCaptureCallStackForUncaughtExceptions(m_workerGlobalScope->workerScript()->isolate(), false);
|
| }
|
|
|
| } // namespace blink
|
|
|