Index: components/translate/core/browser/translate_browser_metrics.cc |
diff --git a/components/translate/core/browser/translate_browser_metrics.cc b/components/translate/core/browser/translate_browser_metrics.cc |
index 7b4de23e80f0aa06802091f4b0d1388319dec7d4..3b74cdc0f6e113b14b410e044dd17205388b5cd1 100644 |
--- a/components/translate/core/browser/translate_browser_metrics.cc |
+++ b/components/translate/core/browser/translate_browser_metrics.cc |
@@ -47,8 +47,8 @@ const MetricsEntry kMetricsEntries[] = { |
kTranslateUnsupportedLanguageAtInitiation }, |
}; |
-COMPILE_ASSERT(arraysize(kMetricsEntries) == TranslateBrowserMetrics::UMA_MAX, |
- arraysize_of_kMetricsEntries_should_be_UMA_MAX); |
+static_assert(arraysize(kMetricsEntries) == TranslateBrowserMetrics::UMA_MAX, |
+ "kMetricsEntries should have UMA_MAX elements"); |
} // namespace |