Index: extensions/browser/api/web_request/web_request_api.cc |
diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc |
index d1a14dd5b5a0050d0f2b9141caf7e58f6364c880..793a68a03969823bb69c5311dc04b81cc377e491 100644 |
--- a/extensions/browser/api/web_request/web_request_api.cc |
+++ b/extensions/browser/api/web_request/web_request_api.cc |
@@ -413,8 +413,8 @@ events::HistogramValue GetEventHistogramValue(const std::string& event_name) { |
{events::WEB_REQUEST_ON_AUTH_REQUIRED, keys::kOnAuthRequiredEvent}, |
{events::WEB_REQUEST_ON_RESPONSE_STARTED, keys::kOnResponseStartedEvent}, |
{events::WEB_REQUEST_ON_HEADERS_RECEIVED, keys::kOnHeadersReceivedEvent}}; |
- COMPILE_ASSERT(arraysize(kWebRequestEvents) == arraysize(values_and_names), |
- "kWebRequestEvents and values_and_names must be the same"); |
+ static_assert(arraysize(kWebRequestEvents) == arraysize(values_and_names), |
+ "kWebRequestEvents and values_and_names must be the same"); |
for (const ValueAndName& value_and_name : values_and_names) { |
if (value_and_name.event_name == event_name) |
return value_and_name.histogram_value; |