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

Unified Diff: net/base/trace_net_log_observer.cc

Issue 649763002: git cl format the second third of the net/base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: net/base/trace_net_log_observer.cc
diff --git a/net/base/trace_net_log_observer.cc b/net/base/trace_net_log_observer.cc
index 77945fbe8d98a0c0b05c8b26f14d99c4937c045a..b27e28a8260cd8a8c3cfa82addb52a8b0acfc2a6 100644
--- a/net/base/trace_net_log_observer.cc
+++ b/net/base/trace_net_log_observer.cc
@@ -55,23 +55,35 @@ void TraceNetLogObserver::OnAddEntry(const NetLog::Entry& entry) {
switch (entry.phase()) {
case NetLog::PHASE_BEGIN:
TRACE_EVENT_NESTABLE_ASYNC_BEGIN2(
- "netlog", NetLog::EventTypeToString(entry.type()), entry.source().id,
- "source_type", NetLog::SourceTypeToString(entry.source().type),
- "params", scoped_refptr<base::debug::ConvertableToTraceFormat>(
+ "netlog",
+ NetLog::EventTypeToString(entry.type()),
+ entry.source().id,
+ "source_type",
+ NetLog::SourceTypeToString(entry.source().type),
+ "params",
+ scoped_refptr<base::debug::ConvertableToTraceFormat>(
davidben 2014/10/10 20:24:16 No action: The old one is a little better for this
new TracedValue(params.Pass())));
break;
case NetLog::PHASE_END:
TRACE_EVENT_NESTABLE_ASYNC_END2(
- "netlog", NetLog::EventTypeToString(entry.type()), entry.source().id,
- "source_type", NetLog::SourceTypeToString(entry.source().type),
- "params", scoped_refptr<base::debug::ConvertableToTraceFormat>(
+ "netlog",
+ NetLog::EventTypeToString(entry.type()),
+ entry.source().id,
+ "source_type",
+ NetLog::SourceTypeToString(entry.source().type),
+ "params",
+ scoped_refptr<base::debug::ConvertableToTraceFormat>(
new TracedValue(params.Pass())));
break;
case NetLog::PHASE_NONE:
TRACE_EVENT_NESTABLE_ASYNC_INSTANT2(
- "netlog", NetLog::EventTypeToString(entry.type()), entry.source().id,
- "source_type", NetLog::SourceTypeToString(entry.source().type),
- "params", scoped_refptr<base::debug::ConvertableToTraceFormat>(
+ "netlog",
+ NetLog::EventTypeToString(entry.type()),
+ entry.source().id,
+ "source_type",
+ NetLog::SourceTypeToString(entry.source().type),
+ "params",
+ scoped_refptr<base::debug::ConvertableToTraceFormat>(
new TracedValue(params.Pass())));
break;
}

Powered by Google App Engine
This is Rietveld 408576698