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

Unified Diff: chrome/browser/prerender/prerender_events.cc

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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
« no previous file with comments | « chrome/browser/prefs/proxy_prefs.cc ('k') | chrome/browser/prerender/prerender_field_trial.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_events.cc
diff --git a/chrome/browser/prerender/prerender_events.cc b/chrome/browser/prerender/prerender_events.cc
index 5e8389d0df75305798e402d3824c3d541c309bb1..a7ac644ea0b03e8159ec5448279474595b59694a 100644
--- a/chrome/browser/prerender/prerender_events.cc
+++ b/chrome/browser/prerender/prerender_events.cc
@@ -38,8 +38,8 @@ const char* kEventNames[] = {
"Max",
};
-COMPILE_ASSERT(arraysize(kEventNames) == PRERENDER_EVENT_MAX + 1,
- PrerenderEvent_name_count_mismatch);
+static_assert(arraysize(kEventNames) == PRERENDER_EVENT_MAX + 1,
+ "kEventNames array size is incorrect");
} // namespace
« no previous file with comments | « chrome/browser/prefs/proxy_prefs.cc ('k') | chrome/browser/prerender/prerender_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698