Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1651)

Unified Diff: components/content_settings/core/browser/content_settings_policy_provider.cc

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/content_settings/core/browser/content_settings_policy_provider.cc
diff --git a/components/content_settings/core/browser/content_settings_policy_provider.cc b/components/content_settings/core/browser/content_settings_policy_provider.cc
index e2976070fe837a7faf91ccfcce3854c5383edfa6..638b29db0393e564184df46fe7b86e25238526ea 100644
--- a/components/content_settings/core/browser/content_settings_policy_provider.cc
+++ b/components/content_settings/core/browser/content_settings_policy_provider.cc
@@ -50,8 +50,9 @@ const char* kPrefToManageType[] = {
NULL, // No policy for default value of app banners
#endif
};
-COMPILE_ASSERT(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES,
- managed_content_settings_pref_names_array_size_incorrect);
+static_assert(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES,
+ "kPrefToManageType should have CONTENT_SETTINGS_NUM_TYPES "
+ "elements");
struct PrefsForManagedContentSettingsMapEntry {
const char* pref_name;

Powered by Google App Engine
This is Rietveld 408576698