Index: net/cookies/cookie_monster.cc |
diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc |
index d3186471372e8a448f2d9b61e06cd8a6c75e1e75..f6895537b8c689d7d2b6f939d70268b89e37d2a2 100644 |
--- a/net/cookies/cookie_monster.cc |
+++ b/net/cookies/cookie_monster.cc |
@@ -1890,8 +1890,8 @@ void CookieMonster::InternalDeleteCookie(CookieMap::iterator it, |
// Ideally, this would be asserted up where we define ChangeCauseMapping, |
// but DeletionCause's visibility (or lack thereof) forces us to make |
// this check here. |
- COMPILE_ASSERT(arraysize(ChangeCauseMapping) == DELETE_COOKIE_LAST_ENTRY + 1, |
- ChangeCauseMapping_size_not_eq_DeletionCause_enum_size); |
+ static_assert(arraysize(ChangeCauseMapping) == DELETE_COOKIE_LAST_ENTRY + 1, |
+ "ChangeCauseMapping size should match DeletionCause size"); |
// See InitializeHistograms() for details. |
if (deletion_cause != DELETE_COOKIE_DONT_RECORD) |