Index: chrome/installer/setup/setup_main.cc |
diff --git a/chrome/installer/setup/setup_main.cc b/chrome/installer/setup/setup_main.cc |
index 286695b38dbd08033dbcf9ee0d1b5ac5e1fd4d63..53be1163624cab267f7608d8af5b8714f2b18f8f 100644 |
--- a/chrome/installer/setup/setup_main.cc |
+++ b/chrome/installer/setup/setup_main.cc |
@@ -1499,9 +1499,8 @@ InstallStatus InstallProductsHelper(const InstallationState& original_state, |
bool proceed_with_installation = true; |
uint32 higher_products = 0; |
- COMPILE_ASSERT( |
- sizeof(higher_products) * 8 > BrowserDistribution::NUM_TYPES, |
- too_many_distribution_types_); |
+ static_assert(sizeof(higher_products) * 8 > BrowserDistribution::NUM_TYPES, |
+ "too_many_distribution_types_"); |
const Products& products = installer_state.products(); |
for (Products::const_iterator it = products.begin(); it < products.end(); |
++it) { |
@@ -1519,8 +1518,8 @@ InstallStatus InstallProductsHelper(const InstallationState& original_state, |
} |
if (higher_products != 0) { |
- COMPILE_ASSERT(BrowserDistribution::NUM_TYPES == 3, |
- add_support_for_new_products_here_); |
+ static_assert(BrowserDistribution::NUM_TYPES == 3, |
+ "add_support_for_new_products_here_"); |
int message_id = IDS_INSTALL_HIGHER_VERSION_BASE; |
proceed_with_installation = false; |
install_status = HIGHER_VERSION_EXISTS; |