Index: ppapi/proxy/nacl_message_scanner.cc |
diff --git a/ppapi/proxy/nacl_message_scanner.cc b/ppapi/proxy/nacl_message_scanner.cc |
index a48ae8ea769271d68cdf0da21586d9afd6ead401..3e522f49b00a1cef190203a2a5a235d070be3a6b 100644 |
--- a/ppapi/proxy/nacl_message_scanner.cc |
+++ b/ppapi/proxy/nacl_message_scanner.cc |
@@ -293,6 +293,9 @@ NaClMessageScanner::~NaClMessageScanner() { |
// message body, rather than passed in a separate FileDescriptorSet. Therefore, |
// on Windows, any message containing handles must be rewritten in the POSIX |
// format before we can send it to the NaCl plugin. |
+// On Mac, base::SharedMemoryHandle has a different serialization than |
+// base::FileDescriptor (which base::SharedMemoryHandle is typedef-ed to in |
+// OS_NACL). |
bool NaClMessageScanner::ScanMessage( |
const IPC::Message& msg, |
uint32_t type, |
@@ -304,7 +307,7 @@ bool NaClMessageScanner::ScanMessage( |
DCHECK(!new_msg_ptr->get()); |
bool rewrite_msg = |
-#if defined(OS_WIN) |
+#if defined(OS_WIN) || defined(OS_MACOSX) |
true; |
#else |
false; |