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

Unified Diff: content/child/background_sync/background_sync_type_converters.cc

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup Created 5 years, 1 month 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
Index: content/child/background_sync/background_sync_type_converters.cc
diff --git a/content/child/background_sync/background_sync_type_converters.cc b/content/child/background_sync/background_sync_type_converters.cc
index e26c2e361b11671bf68fb1077ee9621d7d12723a..5144444c72e5c131c61584c9f639fc9ac31c7653 100644
--- a/content/child/background_sync/background_sync_type_converters.cc
+++ b/content/child/background_sync/background_sync_type_converters.cc
@@ -9,9 +9,9 @@
namespace mojo {
#define COMPILE_ASSERT_MATCHING_ENUM(mojo_name, blink_name) \
- COMPILE_ASSERT(static_cast<int>(content::mojo_name) == \
- static_cast<int>(blink::blink_name), \
- mismatching_enums)
+ static_assert(static_cast<int>(content::mojo_name) == \
+ static_cast<int>(blink::blink_name), \
+ "mojo and blink enums must match")
COMPILE_ASSERT_MATCHING_ENUM(BACKGROUND_SYNC_PERIODICITY_PERIODIC,
WebSyncRegistration::PeriodicityPeriodic);

Powered by Google App Engine
This is Rietveld 408576698