summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/messaging/native_message_process_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api/messaging/native_message_process_host.cc')
-rw-r--r--chrome/browser/extensions/api/messaging/native_message_process_host.cc3
1 files changed, 2 insertions, 1 deletions
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 c28b233..5a98ed8 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());