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

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: Created 7 years, 4 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/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());

Powered by Google App Engine
This is Rietveld 408576698