Index: net/websockets/websocket_basic_handshake_stream.cc |
diff --git a/net/websockets/websocket_basic_handshake_stream.cc b/net/websockets/websocket_basic_handshake_stream.cc |
index bac2438e2a4d456714b6a9cd03e9f3c899e9e708..c0f20c7266e2e05f6b78d4642a24782ecdd13242 100644 |
--- a/net/websockets/websocket_basic_handshake_stream.cc |
+++ b/net/websockets/websocket_basic_handshake_stream.cc |
@@ -272,8 +272,8 @@ bool ValidatePerMessageDeflateExtension(const WebSocketExtension& extension, |
static const char kNoContextTakeover[] = "no_context_takeover"; |
static const char kMaxWindowBits[] = "max_window_bits"; |
const size_t kPrefixLen = arraysize(kClientPrefix) - 1; |
- COMPILE_ASSERT(kPrefixLen == arraysize(kServerPrefix) - 1, |
- the_strings_server_and_client_must_be_the_same_length); |
+ static_assert(kPrefixLen == arraysize(kServerPrefix) - 1, |
+ "the strings server and client must be the same length"); |
typedef std::vector<WebSocketExtension::Parameter> ParameterVector; |
DCHECK_EQ("permessage-deflate", extension.name()); |