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

Unified Diff: net/socket_stream/socket_stream_metrics.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/socket_stream/socket_stream_metrics.cc
diff --git a/net/socket_stream/socket_stream_metrics.cc b/net/socket_stream/socket_stream_metrics.cc
index e026887753315e8a792befbb782ac2178da5524e..a27839f006e3b47384ac0dde94e711dd6bbc83d5 100644
--- a/net/socket_stream/socket_stream_metrics.cc
+++ b/net/socket_stream/socket_stream_metrics.cc
@@ -13,21 +13,19 @@
namespace net {
SocketStreamMetrics::SocketStreamMetrics(const GURL& url)
- : received_bytes_(0),
- received_counts_(0),
- sent_bytes_(0),
- sent_counts_(0) {
+ : received_bytes_(0), received_counts_(0), sent_bytes_(0), sent_counts_(0) {
ProtocolType protocol_type = PROTOCOL_UNKNOWN;
if (url.SchemeIs("ws"))
protocol_type = PROTOCOL_WEBSOCKET;
else if (url.SchemeIs("wss"))
protocol_type = PROTOCOL_WEBSOCKET_SECURE;
- UMA_HISTOGRAM_ENUMERATION("Net.SocketStream.ProtocolType",
- protocol_type, NUM_PROTOCOL_TYPES);
+ UMA_HISTOGRAM_ENUMERATION(
+ "Net.SocketStream.ProtocolType", protocol_type, NUM_PROTOCOL_TYPES);
}
-SocketStreamMetrics::~SocketStreamMetrics() {}
+SocketStreamMetrics::~SocketStreamMetrics() {
+}
void SocketStreamMetrics::OnWaitConnection() {
wait_start_time_ = base::TimeTicks::Now();
@@ -62,25 +60,21 @@ void SocketStreamMetrics::OnClose() {
if (!connect_establish_time_.is_null()) {
UMA_HISTOGRAM_LONG_TIMES("Net.SocketStream.Duration",
closed_time - connect_establish_time_);
- UMA_HISTOGRAM_COUNTS("Net.SocketStream.ReceivedBytes",
- received_bytes_);
- UMA_HISTOGRAM_COUNTS("Net.SocketStream.ReceivedCounts",
- received_counts_);
- UMA_HISTOGRAM_COUNTS("Net.SocketStream.SentBytes",
- sent_bytes_);
- UMA_HISTOGRAM_COUNTS("Net.SocketStream.SentCounts",
- sent_counts_);
+ UMA_HISTOGRAM_COUNTS("Net.SocketStream.ReceivedBytes", received_bytes_);
+ UMA_HISTOGRAM_COUNTS("Net.SocketStream.ReceivedCounts", received_counts_);
+ UMA_HISTOGRAM_COUNTS("Net.SocketStream.SentBytes", sent_bytes_);
+ UMA_HISTOGRAM_COUNTS("Net.SocketStream.SentCounts", sent_counts_);
}
}
void SocketStreamMetrics::OnCountConnectionType(ConnectionType type) {
- UMA_HISTOGRAM_ENUMERATION("Net.SocketStream.ConnectionType", type,
- NUM_CONNECTION_TYPES);
+ UMA_HISTOGRAM_ENUMERATION(
+ "Net.SocketStream.ConnectionType", type, NUM_CONNECTION_TYPES);
}
void SocketStreamMetrics::OnCountWireProtocolType(WireProtocolType type) {
- UMA_HISTOGRAM_ENUMERATION("Net.SocketStream.WireProtocolType", type,
- NUM_WIRE_PROTOCOL_TYPES);
+ UMA_HISTOGRAM_ENUMERATION(
+ "Net.SocketStream.WireProtocolType", type, NUM_WIRE_PROTOCOL_TYPES);
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698