| Index: mojo/edk/system/core.cc
|
| diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc
|
| index ca6105de0f2494c2f650c1eaa4dae0c1b4904cc8..b3602d7c5f4a166aee775a7edf0f5daaef43187c 100644
|
| --- a/mojo/edk/system/core.cc
|
| +++ b/mojo/edk/system/core.cc
|
| @@ -160,7 +160,6 @@ MojoResult Core::CreateSharedBufferWrapper(
|
| bool read_only,
|
| MojoHandle* mojo_wrapper_handle) {
|
| DCHECK(num_bytes);
|
| - CHECK(!read_only);
|
| scoped_refptr<PlatformSharedBuffer> platform_buffer =
|
| PlatformSharedBuffer::CreateFromSharedMemoryHandle(num_bytes, read_only,
|
| shared_memory_handle);
|
| @@ -214,7 +213,7 @@ MojoResult Core::PassSharedMemoryHandle(
|
| if (num_bytes)
|
| *num_bytes = platform_shared_buffer->GetNumBytes();
|
| if (read_only)
|
| - *read_only = false;
|
| + *read_only = platform_shared_buffer->IsReadOnly();
|
| *shared_memory_handle = platform_shared_buffer->DuplicateSharedMemoryHandle();
|
|
|
| shm_dispatcher->Close();
|
|
|