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

Unified Diff: content/renderer/p2p/ipc_socket_factory.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor adjustment Created 6 years 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/renderer/p2p/ipc_socket_factory.cc
diff --git a/content/renderer/p2p/ipc_socket_factory.cc b/content/renderer/p2p/ipc_socket_factory.cc
index 66c6f7e0e7d809af5ec54d727baaec7acbb4a9ac..ab437d4231cea4a4cb1063fe3b71e8c3d86f3772 100644
--- a/content/renderer/p2p/ipc_socket_factory.cc
+++ b/content/renderer/p2p/ipc_socket_factory.cc
@@ -221,7 +221,7 @@ IpcPacketSocket::IpcPacketSocket()
current_discard_bytes_sequence_(0),
packets_discarded_(0),
total_packets_(0) {
- COMPILE_ASSERT(kMaximumInFlightBytes > 0, would_send_at_zero_rate);
+ static_assert(kMaximumInFlightBytes > 0, "would send at zero rate");
std::fill_n(options_, static_cast<int> (P2P_SOCKET_OPT_MAX),
kDefaultNonSetOptionValue);
}

Powered by Google App Engine
This is Rietveld 408576698