| Index: third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp b/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
|
| index 534db8f9e6de8b7ab7382516f5fa80ccbebfe654..346c38d4e6e246a1d2ee5d5f1c1538d936941a10 100644
|
| --- a/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
|
| @@ -7,7 +7,6 @@
|
| #include "core/frame/FrameConsole.h"
|
| #include "core/inspector/IdentifiersFactory.h"
|
| #include "core/inspector/InspectorTraceEvents.h"
|
| -#include "core/inspector/InspectorWorkerAgent.h"
|
| #include "core/inspector/WorkerInspectorController.h"
|
| #include "core/probe/CoreProbes.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| @@ -52,10 +51,9 @@
|
|
|
| WorkerThreadStartMode WorkerInspectorProxy::workerStartMode(
|
| Document* document) {
|
| - bool result = false;
|
| - probe::shouldWaitForDebuggerOnWorkerStart(document, &result);
|
| - return result ? PauseWorkerGlobalScopeOnStart
|
| - : DontPauseWorkerGlobalScopeOnStart;
|
| + if (probe::shouldWaitForDebuggerOnWorkerStart(document))
|
| + return PauseWorkerGlobalScopeOnStart;
|
| + return DontPauseWorkerGlobalScopeOnStart;
|
| }
|
|
|
| void WorkerInspectorProxy::workerThreadCreated(Document* document,
|
| @@ -67,8 +65,7 @@
|
| inspectorProxies().insert(this);
|
| // We expect everyone starting worker thread to synchronously ask for
|
| // workerStartMode right before.
|
| - bool waitingForDebugger = false;
|
| - probe::shouldWaitForDebuggerOnWorkerStart(document, &waitingForDebugger);
|
| + bool waitingForDebugger = probe::shouldWaitForDebuggerOnWorkerStart(document);
|
| probe::didStartWorker(document, this, waitingForDebugger);
|
| }
|
|
|
|
|