Index: base/memory/shared_memory_android.cc |
diff --git a/base/memory/shared_memory_android.cc b/base/memory/shared_memory_android.cc |
index ad9145fcdf1033a7429625aca56318c759253b20..da3c5953f044c8ca861427f7cecfd3661b60f930 100644 |
--- a/base/memory/shared_memory_android.cc |
+++ b/base/memory/shared_memory_android.cc |
@@ -42,7 +42,8 @@ bool SharedMemory::Create(const SharedMemoryCreateOptions& options) { |
// Android doesn't appear to have a way to drop write access on an ashmem |
// segment for a single descriptor. http://crbug.com/320865 |
- readonly_shm_ = SharedMemoryHandle::ImportHandle(dup(shm_.GetHandle())); |
+ readonly_shm_ = SharedMemoryHandle( |
+ base::FileDescriptor(dup(shm_.GetHandle()), false), shm_.GetGUID()); |
if (!readonly_shm_.IsValid()) { |
DPLOG(ERROR) << "dup() failed"; |
return false; |