| 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 be98023b2339b3fd948675d96365d6f7740e79f8..14b60e35742cc6a7177dc818183a0c5d87a98614 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"
|
| @@ -193,18 +192,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)
|
|
|