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

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

Issue 136403007: Implement system tracing for cros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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_ui.cc
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index 6ef08e3c7598537109f018c0b49488b822650aa9..00cbf7dd56d996dca8acaa1e3ef9193e390af18a 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -288,4 +288,11 @@ void TracingUI::OnMonitoringStateChanged(bool is_monitoring) {
"onMonitoringStateChanged", base::FundamentalValue(is_monitoring));
}
+void TracingUI::OnSystemTraceDataCollected(
+ const scoped_refptr<base::RefCountedString>& events_str_ptr) {
+ web_ui()->CallJavascriptFunction(
dsinclair 2014/01/30 14:36:06 Don't think we want to send this back as JS, but i
+ "tracingController.onSystemTraceDataCollected",
+ *scoped_ptr<base::Value>(new base::StringValue(events_str_ptr->data())));
+}
+
} // namespace content
« content/browser/tracing/tracing_controller_impl.cc ('K') | « content/browser/tracing/tracing_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698