Index: components/content_settings/core/browser/host_content_settings_map.cc |
diff --git a/components/content_settings/core/browser/host_content_settings_map.cc b/components/content_settings/core/browser/host_content_settings_map.cc |
index 5571ac675261cdc3bc8121dd0ab7968caad93c10..b229a8b1ae9cac9409c049104c53cf474319698e 100644 |
--- a/components/content_settings/core/browser/host_content_settings_map.cc |
+++ b/components/content_settings/core/browser/host_content_settings_map.cc |
@@ -62,9 +62,9 @@ content_settings::SettingSource kProviderSourceMap[] = { |
content_settings::SETTING_SOURCE_USER, |
content_settings::SETTING_SOURCE_USER, |
}; |
-COMPILE_ASSERT(arraysize(kProviderSourceMap) == |
+static_assert(arraysize(kProviderSourceMap) == |
HostContentSettingsMap::NUM_PROVIDER_TYPES, |
- kProviderSourceMap_has_incorrect_size); |
+ "kProviderSourceMap should have NUM_PROVIDER_TYPES elements"); |
// Returns true if the |content_type| supports a resource identifier. |
// Resource identifiers are supported (but not required) for plug-ins. |