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

Unified Diff: chrome/installer/setup/setup_main.cc

Issue 833513002: Revert of 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/mini_installer/mini_string.h ('k') | chrome/installer/util/channel_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/setup_main.cc
diff --git a/chrome/installer/setup/setup_main.cc b/chrome/installer/setup/setup_main.cc
index f05feae840fa9b96559a011f9fb430f08d5f9d71..ce590b0bf0e504ecde339932115ad90062aafa2f 100644
--- a/chrome/installer/setup/setup_main.cc
+++ b/chrome/installer/setup/setup_main.cc
@@ -1500,9 +1500,9 @@
}
uint32 higher_products = 0;
- static_assert(
+ COMPILE_ASSERT(
sizeof(higher_products) * 8 > BrowserDistribution::NUM_TYPES,
- "too many distribution types");
+ too_many_distribution_types_);
const Products& products = installer_state.products();
for (Products::const_iterator it = products.begin(); it < products.end();
++it) {
@@ -1520,8 +1520,8 @@
}
if (higher_products != 0) {
- static_assert(BrowserDistribution::NUM_TYPES == 4,
- "add support for new products here");
+ COMPILE_ASSERT(BrowserDistribution::NUM_TYPES == 4,
+ add_support_for_new_products_here_);
const uint32 kBrowserBit = 1 << BrowserDistribution::CHROME_BROWSER;
int message_id = 0;
« no previous file with comments | « chrome/installer/mini_installer/mini_string.h ('k') | chrome/installer/util/channel_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698