Index: content/renderer/pepper/pepper_websocket_host.cc |
diff --git a/content/renderer/pepper/pepper_websocket_host.cc b/content/renderer/pepper/pepper_websocket_host.cc |
index 5a29a70a9e2086218eb9e87d6b591e69a80efd09..2250a691406e18eb8ebafb33ff22910bcb6d4452 100644 |
--- a/content/renderer/pepper/pepper_websocket_host.cc |
+++ b/content/renderer/pepper/pepper_websocket_host.cc |
@@ -31,9 +31,9 @@ using blink::WebURL; |
namespace content { |
#define COMPILE_ASSERT_MATCHING_ENUM(webkit_name, np_name) \ |
- COMPILE_ASSERT( \ |
+ static_assert( \ |
static_cast<int>(WebSocket::webkit_name) == static_cast<int>(np_name), \ |
- mismatching_enums) |
+ "WebSocket enums must match PPAPI's") |
COMPILE_ASSERT_MATCHING_ENUM(CloseEventCodeNormalClosure, |
PP_WEBSOCKETSTATUSCODE_NORMAL_CLOSURE); |