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 22429b5bc24f04b556af12e8c6947c4ba4409a98..a32d219461c2d0d5e3703039215c5dfd3a91c699 100644 |
--- a/chrome/browser/nacl_host/nacl_process_host.cc |
+++ b/chrome/browser/nacl_host/nacl_process_host.cc |
@@ -492,7 +492,9 @@ 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(1); // size |
Mark Mentovai
2011/12/01 19:31:16
Yeah, see, this |// size| is cumbersome. It’d be b
|
+ options.executable = true; |
+ if (!memory_buffer.Create(options)) { |
LOG(ERROR) << "Failed to allocate memory buffer"; |
delete this; |
return; |