| 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 28936c27f302f7d19da94521102c668e820c63b2..45c7977653ae9a0fa479e6a002c694e4b7593562 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
|
| @@ -36,7 +36,6 @@
|
| #include "core/fetch/FetchInitiatorInfo.h"
|
| #include "core/frame/FrameHost.h"
|
| #include "core/inspector/InspectorCSSAgent.h"
|
| -#include "core/inspector/InspectorConsoleAgent.h"
|
| #include "core/inspector/InspectorDOMDebuggerAgent.h"
|
| #include "core/inspector/InspectorNetworkAgent.h"
|
| #include "core/inspector/InspectorPageAgent.h"
|
| @@ -171,18 +170,6 @@ void continueWithPolicyIgnore(LocalFrame* frame, DocumentLoader* loader, unsigne
|
| didReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource);
|
| }
|
|
|
| -bool consoleAgentEnabled(ExecutionContext* executionContext)
|
| -{
|
| - InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(executionContext);
|
| - if (!instrumentingAgents || !instrumentingAgents->hasInspectorConsoleAgents())
|
| - return false;
|
| - for (InspectorConsoleAgent* consoleAgent: instrumentingAgents->inspectorConsoleAgents()) {
|
| - if (consoleAgent->enabled())
|
| - return true;
|
| - }
|
| - return false;
|
| -}
|
| -
|
| InstrumentingAgents* instrumentingAgentsFor(WorkerGlobalScope* workerGlobalScope)
|
| {
|
| if (!workerGlobalScope)
|
|
|