Index: net/spdy/spdy_session.h |
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h |
index a468dc412da09aed698ee8299c6d1e19c672a22d..234e318e51db523d2557c8d634ad19541c127384 100644 |
--- a/net/spdy/spdy_session.h |
+++ b/net/spdy/spdy_session.h |
@@ -129,10 +129,10 @@ SpdyGoAwayStatus NET_EXPORT_PRIVATE MapNetErrorToGoAwayStatus(Error err); |
// If these compile asserts fail then SpdyProtocolErrorDetails needs |
// to be updated with new values, as do the mapping functions above. |
-COMPILE_ASSERT(12 == SpdyFramer::LAST_ERROR, |
- SpdyProtocolErrorDetails_SpdyErrors_mismatch); |
-COMPILE_ASSERT(17 == RST_STREAM_NUM_STATUS_CODES, |
- SpdyProtocolErrorDetails_RstStreamStatus_mismatch); |
+static_assert(12 == SpdyFramer::LAST_ERROR, |
+ "SpdyProtocolErrorDetails / Spdy Errors mismatch"); |
+static_assert(17 == RST_STREAM_NUM_STATUS_CODES, |
+ "SpdyProtocolErrorDetails / RstStreamStatus mismatch"); |
// Splits pushed |headers| into request and response parts. Request headers are |
// the headers specifying resource URL. |