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

Unified Diff: chrome/browser/diagnostics/diagnostics_metrics.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
Index: chrome/browser/diagnostics/diagnostics_metrics.cc
diff --git a/chrome/browser/diagnostics/diagnostics_metrics.cc b/chrome/browser/diagnostics/diagnostics_metrics.cc
index 51d4769ef198a8bf8db683f183b94801d0eaba83..eea82780a8369320a09ce00e92478d9825109a05 100644
--- a/chrome/browser/diagnostics/diagnostics_metrics.cc
+++ b/chrome/browser/diagnostics/diagnostics_metrics.cc
@@ -53,8 +53,8 @@ const TestNameInfo kTestNameInfo[] = {
// Add new entries in the same order as DiagnosticsTestId.
};
-COMPILE_ASSERT(arraysize(kTestNameInfo) == DIAGNOSTICS_TEST_ID_COUNT,
- diagnostics_test_info_mismatch);
+static_assert(arraysize(kTestNameInfo) == DIAGNOSTICS_TEST_ID_COUNT,
+ "diagnostics test info mismatch");
const TestNameInfo* FindTestInfo(DiagnosticsTestId id) {
DCHECK(id < DIAGNOSTICS_TEST_ID_COUNT);

Powered by Google App Engine
This is Rietveld 408576698