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

Unified Diff: chrome/browser/chrome_browser_main_mac.mm

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup 2 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/chrome_browser_main_mac.mm
diff --git a/chrome/browser/chrome_browser_main_mac.mm b/chrome/browser/chrome_browser_main_mac.mm
index bfbe7eae4e377c560e70877d4d09b3c8fae05b53..555562ddcae18397b03e783d8bd2f572c19c231c 100644
--- a/chrome/browser/chrome_browser_main_mac.mm
+++ b/chrome/browser/chrome_browser_main_mac.mm
@@ -141,8 +141,8 @@ void RecordCatSixtyFour() {
// some headroom and then leave it alone. See UMA_HISTOGRAM_ENUMERATION in
// base/metrics/histogram.h.
const int kMaxCatsAndSixtyFours = 32;
- COMPILE_ASSERT(kMaxCatsAndSixtyFours >= CAT_SIXTY_FOUR_MAX,
- CatSixtyFour_enum_grew_too_large);
+ static_assert(kMaxCatsAndSixtyFours >= CAT_SIXTY_FOUR_MAX,
+ "kMaxCatsAndSixtyFours is too large");
UMA_HISTOGRAM_ENUMERATION("OSX.CatSixtyFour",
cat_sixty_four,

Powered by Google App Engine
This is Rietveld 408576698