| Index: third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
|
| index e8f37b85e79efadc3219d0fdd1a2c6b254812bd3..b5147ea35d389792c4ab7de79277e0d0ca7dacf4 100644
|
| --- a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
|
| @@ -33,7 +33,6 @@
|
| #include "core/InstrumentingAgents.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/inspector/InspectorLogAgent.h"
|
| -#include "core/inspector/InspectorNetworkAgent.h"
|
| #include "core/inspector/WorkerThreadDebugger.h"
|
| #include "core/inspector/protocol/Protocol.h"
|
| #include "core/workers/WorkerBackingThread.h"
|
| @@ -44,23 +43,18 @@
|
| namespace blink {
|
|
|
| WorkerInspectorController* WorkerInspectorController::create(
|
| - WorkerThread* thread,
|
| - bool networkCapability) {
|
| + WorkerThread* thread) {
|
| WorkerThreadDebugger* debugger =
|
| WorkerThreadDebugger::from(thread->isolate());
|
| - return debugger ? new WorkerInspectorController(thread, debugger,
|
| - networkCapability)
|
| - : nullptr;
|
| + return debugger ? new WorkerInspectorController(thread, debugger) : nullptr;
|
| }
|
|
|
| WorkerInspectorController::WorkerInspectorController(
|
| WorkerThread* thread,
|
| - WorkerThreadDebugger* debugger,
|
| - bool networkCapability)
|
| + WorkerThreadDebugger* debugger)
|
| : m_debugger(debugger),
|
| m_thread(thread),
|
| - m_instrumentingAgents(new InstrumentingAgents()),
|
| - m_networkCapability(networkCapability) {}
|
| + m_instrumentingAgents(new InstrumentingAgents()) {}
|
|
|
| WorkerInspectorController::~WorkerInspectorController() {
|
| DCHECK(!m_thread);
|
| @@ -77,8 +71,6 @@
|
| m_debugger->contextGroupId(m_thread), nullptr);
|
| m_session->append(
|
| new InspectorLogAgent(m_thread->consoleMessageStorage(), nullptr));
|
| - if (m_networkCapability)
|
| - m_session->append(InspectorNetworkAgent::create(nullptr));
|
| m_thread->workerBackingThread().backingThread().addTaskObserver(this);
|
| }
|
|
|
|
|