Index: chrome/browser/nacl_host/nacl_process_host.cc |
diff --git a/chrome/browser/nacl_host/nacl_process_host.cc b/chrome/browser/nacl_host/nacl_process_host.cc |
index 8bc8b991e13273b90ac1f65fd9cced58ef05d9b4..c84f416468d9d293c9eb143b90c3c7b3aab38b77 100644 |
--- a/chrome/browser/nacl_host/nacl_process_host.cc |
+++ b/chrome/browser/nacl_host/nacl_process_host.cc |
@@ -492,7 +492,10 @@ void NaClProcessHost::SendStart(base::PlatformFile irt_file) { |
// mappable with PROT_EXEC. Rather than requiring an extra IPC |
// round trip out of the sandbox, we create an FD here. |
base::SharedMemory memory_buffer; |
- if (!memory_buffer.CreateAnonymous(/* size= */ 1)) { |
+ base::SharedMemoryCreateOptions options; |
+ options.size = 1; |
+ options.executable = true; |
+ if (!memory_buffer.Create(options)) { |
LOG(ERROR) << "Failed to allocate memory buffer"; |
delete this; |
return; |