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

Unified Diff: chrome/installer/util/util_constants.h

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup Created 5 years, 1 month 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
« no previous file with comments | « chrome/installer/util/shell_util.cc ('k') | components/font_service/font_service_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/util_constants.h
diff --git a/chrome/installer/util/util_constants.h b/chrome/installer/util/util_constants.h
index 9d39ef7b01370ebdfa30510f6227bcaf9d2ea55e..16d21fdf7339fc5e86c1db75b8e713d726a6f401 100644
--- a/chrome/installer/util/util_constants.h
+++ b/chrome/installer/util/util_constants.h
@@ -128,8 +128,8 @@ enum InstallerStage {
// When we start reporting the numerical values from the enum, the order
// above MUST be preserved.
-COMPILE_ASSERT(UNINSTALLING_CHROME_FRAME == 20,
- never_ever_ever_change_InstallerStage_values_bang);
+static_assert(UNINSTALLING_CHROME_FRAME == 20,
+ "Never ever ever change InstallerStage values!");
namespace switches {
« no previous file with comments | « chrome/installer/util/shell_util.cc ('k') | components/font_service/font_service_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698