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

Unified Diff: content/child/blink_platform_impl.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixups 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 | « content/child/assert_matching_enums.cc ('k') | content/child/browser_font_resource_trusted.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 61d50e7af93cc00fba6f9b3df89619e9a9d75b2d..b2432e1059702aa56a6b60038b7f12c9b8f23847 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -601,10 +601,10 @@ long* BlinkPlatformImpl::getTraceSamplingState(
return NULL;
}
-COMPILE_ASSERT(
+static_assert(
sizeof(blink::Platform::TraceEventHandle) ==
sizeof(base::debug::TraceEventHandle),
- TraceEventHandle_types_must_be_same_size);
+ "TraceEventHandle types must be same size");
blink::Platform::TraceEventHandle BlinkPlatformImpl::addTraceEvent(
char phase,
« no previous file with comments | « content/child/assert_matching_enums.cc ('k') | content/child/browser_font_resource_trusted.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698