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

Unified Diff: base/trace_event.cc

Issue 17041: \r cleanup (Closed)
Patch Set: dropped json changes Created 11 years, 12 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event.cc
diff --git a/base/trace_event.cc b/base/trace_event.cc
index 9b10f9e4c6a6c860c4fb8b50095bff8d5a62fc93..93e6a7e247de3f32c046a61ced7dd7c66f1acf45 100644
--- a/base/trace_event.cc
+++ b/base/trace_event.cc
@@ -51,7 +51,7 @@ bool TraceLog::Start() {
return true;
enabled_ = OpenLogFile();
if (enabled_) {
- Log("var raw_trace_events = [\r\n");
+ Log("var raw_trace_events = [\n");
trace_start_time_ = TimeTicks::Now();
timer_.Start(TimeDelta::FromMilliseconds(250), this, &TraceLog::Heartbeat);
}
@@ -67,7 +67,7 @@ void TraceLog::StopTracing() {
void TraceLog::Stop() {
if (enabled_) {
enabled_ = false;
- Log("];\r\n");
+ Log("];\n");
CloseLogFile();
timer_.Stop();
}
@@ -132,7 +132,7 @@ void TraceLog::Trace(const std::string& name,
std::string msg =
StringPrintf("{'pid':'0x%lx', 'tid':'0x%lx', 'type':'%s', "
"'name':'%s', 'id':'0x%lx', 'extra':'%s', 'file':'%s', "
- "'line_number':'%d', 'usec_begin': %I64d},\r\n",
+ "'line_number':'%d', 'usec_begin': %I64d},\n",
base::GetCurrentProcId(),
PlatformThread::CurrentId(),
kEventTypeNames[type],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698