Commit e1d034bd authored by caseq's avatar caseq Committed by Commit bot

Tracing: fix missing comma between trace chunks written to file

TBR=nduca,dsinclair
BUG=415388

Review URL: https://codereview.chromium.org/583583002

Cr-Commit-Position: refs/heads/master@{#295447}
parent e98080ba
...@@ -68,7 +68,9 @@ class FileTraceDataSink : public TracingController::TraceDataSink { ...@@ -68,7 +68,9 @@ class FileTraceDataSink : public TracingController::TraceDataSink {
void AddTraceChunkOnFileThread( void AddTraceChunkOnFileThread(
const scoped_refptr<base::RefCountedString> chunk) { const scoped_refptr<base::RefCountedString> chunk) {
if (!OpenFileIfNeededOnFileThread()) if (file_ != NULL)
fputc(',', file_);
else if (!OpenFileIfNeededOnFileThread())
return; return;
ignore_result(fwrite(chunk->data().c_str(), strlen(chunk->data().c_str()), ignore_result(fwrite(chunk->data().c_str(), strlen(chunk->data().c_str()),
1, file_)); 1, file_));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment