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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.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/InspectorHeapProfilerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
index f49b7a8ea4c4dc3e38be9f3707c464afdc21776b..fe8c59c968aa10c7c869206d5ff9bc7df4977c75 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
@@ -89,22 +89,17 @@ InspectorHeapProfilerAgent::~InspectorHeapProfilerAgent()
}
// InspectorBaseAgent overrides.
-void InspectorHeapProfilerAgent::setState(protocol::DictionaryValue* state)
+void InspectorHeapProfilerAgent::init(InstrumentingAgents* instrumentingAgents, protocol::Frontend* baseFrontend, protocol::Dispatcher* dispatcher, protocol::DictionaryValue* state)
{
- InspectorBaseAgent::setState(state);
+ InspectorBaseAgent::init(instrumentingAgents, baseFrontend, dispatcher, state);
m_v8HeapProfilerAgent->setInspectorState(m_state);
+ m_v8HeapProfilerAgent->setFrontend(frontend());
}
-void InspectorHeapProfilerAgent::setFrontend(protocol::Frontend* frontend)
-{
- InspectorBaseAgent::setFrontend(frontend);
- m_v8HeapProfilerAgent->setFrontend(protocol::Frontend::HeapProfiler::from(frontend));
-}
-
-void InspectorHeapProfilerAgent::clearFrontend()
+void InspectorHeapProfilerAgent::dispose()
{
m_v8HeapProfilerAgent->clearFrontend();
- InspectorBaseAgent::clearFrontend();
+ InspectorBaseAgent::dispose();
}
void InspectorHeapProfilerAgent::restore()

Powered by Google App Engine
This is Rietveld 408576698