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

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

Issue 1907663005: [DevTools] Move v8-related instrumentation from agents to InspectorSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1889533002
Patch Set: profiler agent restore starts instrumenting Created 4 years, 8 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 9a1c4a0d4203dbaf67c9d739e24f6f9969ca23c9..6f816743ec75d1ec7f501b82303c656a0e716692 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
@@ -73,8 +73,8 @@ AsyncTask::AsyncTask(ExecutionContext* context, void* task, bool enabled)
if (!m_instrumentingSessions || m_instrumentingSessions->isEmpty())
return;
for (InspectorSession* session : *m_instrumentingSessions) {
- if (session->instrumentingAgents()->inspectorDebuggerAgent())
- session->instrumentingAgents()->inspectorDebuggerAgent()->asyncTaskStarted(m_task);
+ if (session->instrumentingAgents()->inspectorSession())
+ session->instrumentingAgents()->inspectorSession()->asyncTaskStarted(m_task);
}
}
@@ -83,8 +83,8 @@ AsyncTask::~AsyncTask()
if (!m_instrumentingSessions || m_instrumentingSessions->isEmpty())
return;
for (InspectorSession* session : *m_instrumentingSessions) {
- if (session->instrumentingAgents()->inspectorDebuggerAgent())
- session->instrumentingAgents()->inspectorDebuggerAgent()->asyncTaskFinished(m_task);
+ if (session->instrumentingAgents()->inspectorSession())
+ session->instrumentingAgents()->inspectorSession()->asyncTaskFinished(m_task);
}
}

Powered by Google App Engine
This is Rietveld 408576698