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

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

Issue 2467933002: [DevTools] migrate InspectorPageAgent and InspectorMemoryAgent to new style (Closed)
Patch Set: rebased Created 4 years, 1 month 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/InspectorMemoryAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorMemoryAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorMemoryAgent.cpp
index a77a2d7aca4331efcc4e79fa8da27348218a4299..4b9d75553f5ee6f664e261e312519b3f9cf317e0 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorMemoryAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorMemoryAgent.cpp
@@ -36,15 +36,15 @@ namespace blink {
InspectorMemoryAgent::~InspectorMemoryAgent() {}
-void InspectorMemoryAgent::getDOMCounters(ErrorString*,
- int* documents,
- int* nodes,
- int* jsEventListeners) {
+Response InspectorMemoryAgent::getDOMCounters(int* documents,
+ int* nodes,
+ int* jsEventListeners) {
*documents =
InstanceCounters::counterValue(InstanceCounters::DocumentCounter);
*nodes = InstanceCounters::counterValue(InstanceCounters::NodeCounter);
*jsEventListeners =
InstanceCounters::counterValue(InstanceCounters::JSEventListenerCounter);
+ return Response::OK();
}
InspectorMemoryAgent::InspectorMemoryAgent() = default;

Powered by Google App Engine
This is Rietveld 408576698