Chromium Code Reviews| 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) |