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

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

Issue 1899933003: [DevTools] Introduce InspectorSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: export, comment 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/InspectorProfilerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorProfilerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorProfilerAgent.cpp
index 2c295c7d2081b7a086a44d093aaa340b7d4c1e32..7204818e086620e03fdba7e59fda1296ba54206e 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorProfilerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorProfilerAgent.cpp
@@ -58,22 +58,17 @@ InspectorProfilerAgent::~InspectorProfilerAgent()
}
// InspectorBaseAgent overrides.
-void InspectorProfilerAgent::setState(protocol::DictionaryValue* state)
+void InspectorProfilerAgent::init(InstrumentingAgents* instrumentingAgents, protocol::Frontend* baseFrontend, protocol::Dispatcher* dispatcher, protocol::DictionaryValue* state)
{
- InspectorBaseAgent::setState(state);
+ InspectorBaseAgent::init(instrumentingAgents, baseFrontend, dispatcher, state);
m_v8ProfilerAgent->setInspectorState(m_state);
+ m_v8ProfilerAgent->setFrontend(frontend());
}
-void InspectorProfilerAgent::setFrontend(protocol::Frontend* frontend)
-{
- InspectorBaseAgent::setFrontend(frontend);
- m_v8ProfilerAgent->setFrontend(protocol::Frontend::Profiler::from(frontend));
-}
-
-void InspectorProfilerAgent::clearFrontend()
+void InspectorProfilerAgent::dispose()
{
m_v8ProfilerAgent->clearFrontend();
- InspectorBaseAgent::clearFrontend();
+ InspectorBaseAgent::dispose();
}
void InspectorProfilerAgent::restore()

Powered by Google App Engine
This is Rietveld 408576698