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

Unified Diff: components/devtools_bridge/socket_tunnel_packet_handler.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_packet_handler.cc
diff --git a/components/devtools_bridge/socket_tunnel_packet_handler.cc b/components/devtools_bridge/socket_tunnel_packet_handler.cc
index f12e5838cb75ffb2547d0a9929e4c605789c0a4d..ea609aed18774154496d80133064b311c19000cf 100644
--- a/components/devtools_bridge/socket_tunnel_packet_handler.cc
+++ b/components/devtools_bridge/socket_tunnel_packet_handler.cc
@@ -41,8 +41,8 @@ void SocketTunnelPacketHandler::DecodePacket(const void* data, size_t length) {
memcpy(packet->data(), bytes + 1, length - 1);
HandleDataPacket(connection_index, packet);
} else if (length >= kControlPacketSizeBytes) {
- COMPILE_ASSERT(kControlPacketSizeBytes == 3,
- unexpected_control_packet_size);
+ static_assert(kControlPacketSizeBytes == 3,
+ "kControlPacketSizeBytes should equal 3");
int op_code = bytes[1];
connection_id = bytes[2];
« no previous file with comments | « components/devtools_bridge/socket_tunnel_connection.cc ('k') | components/history/core/android/android_history_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698