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

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

Issue 22962004: Thread-local trace-event buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update browser_shutdown_profile_dumper Created 7 years, 3 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
« no previous file with comments | « content/browser/tracing/trace_controller_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/trace_subscriber_stdio.cc
diff --git a/content/browser/tracing/trace_subscriber_stdio.cc b/content/browser/tracing/trace_subscriber_stdio.cc
index 35b96464e74b80ed0933f035c19b8e1ac46ca52f..2c6aede56cef0738459828dda7b8d58b04daa925 100644
--- a/content/browser/tracing/trace_subscriber_stdio.cc
+++ b/content/browser/tracing/trace_subscriber_stdio.cc
@@ -46,6 +46,7 @@ class TraceSubscriberStdio::TraceSubscriberStdioWorker
void OnTraceData(const scoped_refptr<base::RefCountedString>& data_ptr) {
if (!IsValid())
return;
+ DCHECK(!data_ptr->data().empty());
if (needs_comma_)
WriteString(",");
WriteString(data_ptr->data());
« no previous file with comments | « content/browser/tracing/trace_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698