Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp

Issue 2035653006: [DevTools] Move Console to v8 inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved api a bit Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698