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

Unified Diff: components/translate/core/browser/translate_browser_metrics.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/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
« no previous file with comments | « components/sync_driver/model_association_manager.cc ('k') | components/translate/core/common/translate_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698