Index: components/translate/core/common/translate_metrics.cc |
diff --git a/components/translate/core/common/translate_metrics.cc b/components/translate/core/common/translate_metrics.cc |
index 2c64b5295979c24fc3c25bd105b086db4c8a856a..3f4e10e90c40c25c313db63eeda00e70bace88ef 100644 |
--- a/components/translate/core/common/translate_metrics.cc |
+++ b/components/translate/core/common/translate_metrics.cc |
@@ -43,8 +43,8 @@ const MetricsEntry kMetricsEntries[] = { |
{UMA_PAGE_SCHEME, kTranslatePageScheme}, |
{UMA_SIMILAR_LANGUAGE_MATCH, kTranslateSimilarLanguageMatch}, }; |
-COMPILE_ASSERT(arraysize(kMetricsEntries) == UMA_MAX, |
- arraysize_of_kMetricsEntries_should_be_UMA_MAX); |
+static_assert(arraysize(kMetricsEntries) == UMA_MAX, |
+ "kMetricsEntries should have UMA_MAX elements"); |
LanguageCheckType GetLanguageCheckMetric(const std::string& provided_code, |
const std::string& revised_code) { |