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

Unified Diff: chrome/common/mac/launchd.mm

Issue 812503003: replace COMPILE_ASSERT with static_assert in chrome/common/ (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/common/extensions/api/webstore/webstore_api_constants.cc ('k') | chrome/common/mac/mock_launchd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/mac/launchd.mm
diff --git a/chrome/common/mac/launchd.mm b/chrome/common/mac/launchd.mm
index fb5da920f2afd9a6f0b74eecebd2a8927003efef..0990fa41a5b261fb81e6330019638940bf515548 100644
--- a/chrome/common/mac/launchd.mm
+++ b/chrome/common/mac/launchd.mm
@@ -56,18 +56,18 @@ NSURL* GetPlistURL(Launchd::Domain domain,
} // namespace
-COMPILE_ASSERT(static_cast<int>(Launchd::User) ==
- static_cast<int>(NSUserDomainMask),
- NSUserDomainMask_value_changed);
-COMPILE_ASSERT(static_cast<int>(Launchd::Local) ==
- static_cast<int>(NSLocalDomainMask),
- NSLocalDomainMask_value_changed);
-COMPILE_ASSERT(static_cast<int>(Launchd::Network) ==
- static_cast<int>(NSNetworkDomainMask),
- NSNetworkDomainMask_value_changed);
-COMPILE_ASSERT(static_cast<int>(Launchd::System) ==
- static_cast<int>(NSSystemDomainMask),
- NSSystemDomainMask_value_changed);
+static_assert(static_cast<int>(Launchd::User) ==
+ static_cast<int>(NSUserDomainMask),
+ "NSUserDomainMask value changed");
+static_assert(static_cast<int>(Launchd::Local) ==
+ static_cast<int>(NSLocalDomainMask),
+ "NSLocalDomainMask value changed");
+static_assert(static_cast<int>(Launchd::Network) ==
+ static_cast<int>(NSNetworkDomainMask),
+ "NSNetworkDomainMask value changed");
+static_assert(static_cast<int>(Launchd::System) ==
+ static_cast<int>(NSSystemDomainMask),
+ "NSSystemDomainMask value changed");
Launchd* Launchd::g_instance_ = NULL;
« no previous file with comments | « chrome/common/extensions/api/webstore/webstore_api_constants.cc ('k') | chrome/common/mac/mock_launchd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698