Index: Source/core/inspector/PageRuntimeAgent.cpp |
diff --git a/Source/core/inspector/PageRuntimeAgent.cpp b/Source/core/inspector/PageRuntimeAgent.cpp |
index 442b959b5be8b2d671ae922f468c645b3fba774e..12958c11b56cf613856366529f0f43909fd76d16 100644 |
--- a/Source/core/inspector/PageRuntimeAgent.cpp |
+++ b/Source/core/inspector/PageRuntimeAgent.cpp |
@@ -32,6 +32,7 @@ |
#include "core/inspector/PageRuntimeAgent.h" |
#include "bindings/core/dart/DartController.h" |
+#include "bindings/core/dart/DartInspectorRuntimeAgent.h" |
#include "bindings/core/v8/DOMWrapperWorld.h" |
#include "bindings/core/v8/ScriptController.h" |
#include "bindings/core/v8/ScriptState.h" |
@@ -190,7 +191,6 @@ void PageRuntimeAgent::reportExecutionContextCreation() |
void PageRuntimeAgent::notifyDartContextCreated(const String& frameId, ScriptState* v8ScriptState) |
{ |
ExecutionContext* executionContext = v8ScriptState->executionContext(); |
- int executionContextId = injectedScriptManager()->injectedScriptIdFor(v8ScriptState); |
DartController* dartController = DartController::retrieve(executionContext); |
if (dartController) { |
Vector<DartScriptState*> scriptStates; |
@@ -198,7 +198,7 @@ void PageRuntimeAgent::notifyDartContextCreated(const String& frameId, ScriptSta |
// TODO(jacobr): now that there is a human readable name field we could possibly leave orign blank. |
for (size_t i = 0; i< scriptStates.size(); i++) { |
DartScriptState* state = scriptStates[i]; |
- addExecutionContextToFrontendDart(executionContextId, "", *(state->name()), *(state->name()), frameId, "Dart", state->libraryId()); |
+ m_dart->addExecutionContextToFrontendHelper(state, true, *(state->name()), frameId); |
} |
} |
} |