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

Unified Diff: components/devtools_bridge/socket_tunnel_connection.cc

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup 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: components/devtools_bridge/socket_tunnel_connection.cc
diff --git a/components/devtools_bridge/socket_tunnel_connection.cc b/components/devtools_bridge/socket_tunnel_connection.cc
index da9def2614bbb20b10892477a20ef0e55ddadc12..9fba14309f035a0b7086bf42930dd89878d0354d 100644
--- a/components/devtools_bridge/socket_tunnel_connection.cc
+++ b/components/devtools_bridge/socket_tunnel_connection.cc
@@ -30,8 +30,8 @@ void SocketTunnelConnection::Write(scoped_refptr<net::IOBufferWithSize> chunk) {
void SocketTunnelConnection::BuildControlPacket(char* buffer,
int op_code) {
- COMPILE_ASSERT(kControlPacketSizeBytes == 3,
- unexpected_control_packet_size);
+ static_assert(kControlPacketSizeBytes == 3,
+ "kControlPacketSizeBytes should equal 3");
buffer[0] = kControlConnectionId;
buffer[1] = op_code;
buffer[2] = index_ + kMinConnectionId;

Powered by Google App Engine
This is Rietveld 408576698