Index: chrome/browser/extensions/api/messaging/native_message_process_host.cc |
diff --git a/chrome/browser/extensions/api/messaging/native_message_process_host.cc b/chrome/browser/extensions/api/messaging/native_message_process_host.cc |
index c28b233dea7333b39a2e885cab378926a1657e05..5a98ed8651e79df61bf19de5454e0eab8c3a04a5 100644 |
--- a/chrome/browser/extensions/api/messaging/native_message_process_host.cc |
+++ b/chrome/browser/extensions/api/messaging/native_message_process_host.cc |
@@ -153,7 +153,8 @@ void NativeMessageProcessHost::OnMessage(const std::string& json) { |
new net::IOBufferWithSize(json.size() + kMessageHeaderSize); |
// Copy size and content of the message to the buffer. |
- COMPILE_ASSERT(sizeof(uint32) == kMessageHeaderSize, incorrect_header_size); |
+ static_assert(sizeof(uint32) == kMessageHeaderSize, |
+ "kMessageHeaderSize is incorrect"); |
*reinterpret_cast<uint32*>(buffer->data()) = json.size(); |
memcpy(buffer->data() + kMessageHeaderSize, json.data(), json.size()); |