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

Unified Diff: content/browser/tracing/tracing_controller_impl_data_sinks.cc

Issue 2161583004: Tracing: re-use JSONTraceDataSink in DevTools' tracing handler... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 5 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: content/browser/tracing/tracing_controller_impl_data_sinks.cc
diff --git a/content/browser/tracing/tracing_controller_impl_data_sinks.cc b/content/browser/tracing/tracing_controller_impl_data_sinks.cc
index 86f0df224ba888da6fb8b8e8458301ddfc6316ae..8c4e19816615f0692c5f72a751e7689bbd937e69 100644
--- a/content/browser/tracing/tracing_controller_impl_data_sinks.cc
+++ b/content/browser/tracing/tracing_controller_impl_data_sinks.cc
@@ -336,4 +336,10 @@ scoped_refptr<TraceDataEndpoint> TracingControllerImpl::CreateCallbackEndpoint(
return new StringTraceDataEndpoint(callback);
}
+scoped_refptr<TracingController::TraceDataSink>
+TracingControllerImpl::CreateJSONSink(
+ scoped_refptr<TraceDataEndpoint> endpoint) {
+ return new JSONTraceDataSink(endpoint);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698