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

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

Issue 821673004: replace COMPILE_ASSERT with static_assert in chrome/installer/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/installer/util/installation_state.cc ('k') | chrome/installer/util/logging_installer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/installer_state.cc
diff --git a/chrome/installer/util/installer_state.cc b/chrome/installer/util/installer_state.cc
index d2042776d45ac9b42f87af809146f322ac37e5a4..c767a3c9481b665a29b4488c55ef67ff659a5f5c 100644
--- a/chrome/installer/util/installer_state.cc
+++ b/chrome/installer/util/installer_state.cc
@@ -620,10 +620,10 @@ bool InstallerState::AnyExistsAndIsInUse(
};
DCHECK_NE(file_bits, 0U);
DCHECK_LT(file_bits, 1U << NUM_BINARIES);
- COMPILE_ASSERT(CHROME_DLL == 1, no_youre_out_of_order);
- COMPILE_ASSERT(CHROME_FRAME_DLL == 2, no_youre_out_of_order);
- COMPILE_ASSERT(CHROME_FRAME_HELPER_DLL == 4, no_youre_out_of_order);
- COMPILE_ASSERT(CHROME_FRAME_HELPER_EXE == 8, no_youre_out_of_order);
+ static_assert(CHROME_DLL == 1, "no, you're out of order");
+ static_assert(CHROME_FRAME_DLL == 2, "no, you're out of order");
+ static_assert(CHROME_FRAME_HELPER_DLL == 4, "no, you're out of order");
+ static_assert(CHROME_FRAME_HELPER_EXE == 8, "no, you're out of order");
// Check only for the current version (i.e., the version we are upgrading
// _from_). Later versions from pending in-use updates need not be checked
« no previous file with comments | « chrome/installer/util/installation_state.cc ('k') | chrome/installer/util/logging_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698