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

Unified Diff: chrome/installer/util/installation_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/install_util.cc ('k') | chrome/installer/util/installer_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/installation_state.cc
diff --git a/chrome/installer/util/installation_state.cc b/chrome/installer/util/installation_state.cc
index 0173581ec220133d50cccb1c006ebaa1430d2932..e55fcf5959d22dd7106983566669484ecd54da2d 100644
--- a/chrome/installer/util/installation_state.cc
+++ b/chrome/installer/util/installation_state.cc
@@ -221,14 +221,14 @@ InstallationState::InstallationState() {
// static
int InstallationState::IndexFromDistType(BrowserDistribution::Type type) {
- COMPILE_ASSERT(BrowserDistribution::CHROME_BROWSER == CHROME_BROWSER_INDEX,
- unexpected_chrome_browser_distribution_value_);
- COMPILE_ASSERT(BrowserDistribution::CHROME_FRAME == CHROME_FRAME_INDEX,
- unexpected_chrome_frame_distribution_value_);
- COMPILE_ASSERT(BrowserDistribution::CHROME_BINARIES == CHROME_BINARIES_INDEX,
- unexpected_chrome_frame_distribution_value_);
- COMPILE_ASSERT(BrowserDistribution::CHROME_APP_HOST == CHROME_APP_HOST_INDEX,
- unexpected_chrome_frame_distribution_value_);
+ static_assert(BrowserDistribution::CHROME_BROWSER == CHROME_BROWSER_INDEX,
+ "unexpected chrome browser distribution value");
+ static_assert(BrowserDistribution::CHROME_FRAME == CHROME_FRAME_INDEX,
+ "unexpected chrome frame distribution value");
+ static_assert(BrowserDistribution::CHROME_BINARIES == CHROME_BINARIES_INDEX,
+ "unexpected chrome binaries distribution value");
+ static_assert(BrowserDistribution::CHROME_APP_HOST == CHROME_APP_HOST_INDEX,
+ "unexpected chrome app host distribution value");
DCHECK(type == BrowserDistribution::CHROME_BROWSER ||
type == BrowserDistribution::CHROME_FRAME ||
type == BrowserDistribution::CHROME_BINARIES ||
« no previous file with comments | « chrome/installer/util/install_util.cc ('k') | chrome/installer/util/installer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698