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

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

Issue 1004113004: [DevTools] Do not instrument with InspectorInspectorAgent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: no instrumentation Created 5 years, 9 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: Source/core/inspector/InspectorInstrumentation.cpp
diff --git a/Source/core/inspector/InspectorInstrumentation.cpp b/Source/core/inspector/InspectorInstrumentation.cpp
index db213f555098aabba10a2990c5e5faed37fd9795..f66992f62d7f709083a7679e38c3b36d30a18cd6 100644
--- a/Source/core/inspector/InspectorInstrumentation.cpp
+++ b/Source/core/inspector/InspectorInstrumentation.cpp
@@ -37,7 +37,6 @@
#include "core/inspector/InspectorCSSAgent.h"
#include "core/inspector/InspectorConsoleAgent.h"
#include "core/inspector/InspectorDebuggerAgent.h"
-#include "core/inspector/InspectorInspectorAgent.h"
#include "core/inspector/InspectorProfilerAgent.h"
#include "core/inspector/InspectorResourceAgent.h"
#include "core/inspector/InstrumentingAgents.h"
@@ -119,9 +118,9 @@ void willDestroyResourceImpl(Resource* cachedResource)
bool collectingHTMLParseErrorsImpl(InstrumentingAgents* instrumentingAgents)
{
- if (InspectorInspectorAgent* inspectorAgent = instrumentingAgents->inspectorInspectorAgent())
- return inspectorAgent->hasFrontend();
- return false;
+ if (!instrumentingAgentsSet)
yurys 2015/03/26 12:55:33 Can you add an assert that instrumentingAgentsSet
dgozman 2015/03/26 15:52:59 Done.
+ return false;
+ return instrumentingAgentsSet->contains(instrumentingAgents);
}
void appendAsyncCallStack(ExecutionContext* executionContext, ScriptCallStack* callStack)
« no previous file with comments | « Source/core/inspector/InspectorInspectorAgent.cpp ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698