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

Unified Diff: ppapi/shared_impl/ppb_trace_event_impl.cc

Issue 824153003: replace COMPILE_ASSERT with static_assert in ppapi/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 months 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 | « ppapi/shared_impl/ppb_gamepad_shared.cc ('k') | ppapi/shared_impl/private/net_address_private_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_trace_event_impl.cc
diff --git a/ppapi/shared_impl/ppb_trace_event_impl.cc b/ppapi/shared_impl/ppb_trace_event_impl.cc
index ce1afb94b51bb18d824a536088e3ea54a47883bc..6db821ff135c0da38a4e4912fe30a7e4ae05190f 100644
--- a/ppapi/shared_impl/ppb_trace_event_impl.cc
+++ b/ppapi/shared_impl/ppb_trace_event_impl.cc
@@ -39,7 +39,8 @@ void TraceEventImpl::AddTraceEvent(int8_t phase,
const uint64_t arg_values[],
uint8_t flags) {
- COMPILE_ASSERT(sizeof(unsigned long long) == sizeof(uint64_t), msg);
+ static_assert(sizeof(unsigned long long) == sizeof(uint64_t),
+ "unexpected data type sizes");
base::debug::TraceLog::GetInstance()->AddTraceEvent(
phase,
« no previous file with comments | « ppapi/shared_impl/ppb_gamepad_shared.cc ('k') | ppapi/shared_impl/private/net_address_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698