Index: net/http/http_server_properties.cc |
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc |
index 25725a8bd953e4c6ec6d3808316634af16e2a9bc..8680cd1941637687984d86248041e471da010c7e 100644 |
--- a/net/http/http_server_properties.cc |
+++ b/net/http/http_server_properties.cc |
@@ -25,9 +25,9 @@ const char* const kAlternateProtocolStrings[] = { |
"quic" |
}; |
-COMPILE_ASSERT( |
- arraysize(kAlternateProtocolStrings) == NUM_VALID_ALTERNATE_PROTOCOLS, |
- kAlternateProtocolStringsSize_kNumValidAlternateProtocols_not_equal); |
+static_assert(arraysize(kAlternateProtocolStrings) == |
+ NUM_VALID_ALTERNATE_PROTOCOLS, |
+ "kAlternateProtocolStrings has incorrect size"); |
} // namespace |