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

Unified Diff: chrome/installer/util/install_util.cc

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
Index: chrome/installer/util/install_util.cc
diff --git a/chrome/installer/util/install_util.cc b/chrome/installer/util/install_util.cc
index fe7d5899f6277e94c453b6cb6192769ddf5eb92e..b5ff91cf3aaba8fb754753d613c26b1899e8fa45 100644
--- a/chrome/installer/util/install_util.cc
+++ b/chrome/installer/util/install_util.cc
@@ -88,8 +88,8 @@ const wchar_t* const kStages[] = {
kStageUninstallingChromeFrame,
};
-COMPILE_ASSERT(installer::NUM_STAGES == arraysize(kStages),
- kStages_disagrees_with_Stage_comma_they_must_match_bang);
+static_assert(installer::NUM_STAGES == arraysize(kStages),
+ "kStages disagrees with Stage; they must match!");
// Creates a zero-sized non-decorated foreground window that doesn't appear
// in the taskbar. This is used as a parent window for calls to ShellExecuteEx
« no previous file with comments | « chrome/installer/util/google_update_settings_unittest.cc ('k') | chrome/installer/util/installation_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698