Index: content/common/sandbox_mac_fontloading_unittest.mm |
diff --git a/content/common/sandbox_mac_fontloading_unittest.mm b/content/common/sandbox_mac_fontloading_unittest.mm |
index a9210f32bd6712eec414c1fd93cc76d83e09ad8f..e7e3d20e2bd79afa65f0e8aa3d8662472e6536c0 100644 |
--- a/content/common/sandbox_mac_fontloading_unittest.mm |
+++ b/content/common/sandbox_mac_fontloading_unittest.mm |
@@ -66,9 +66,9 @@ bool FontLoadingTestCase::BeforeSandboxInit() { |
} |
bool FontLoadingTestCase::SandboxedTest() { |
- base::SharedMemoryHandle shmem_handle; |
- if (!font_shmem_->ShareToProcess(base::kNullProcessHandle, &shmem_handle)) { |
- LOG(ERROR) << "SharedMemory::ShareToProcess failed"; |
+ base::SharedMemoryHandle shmem_handle = font_shmem_->handle().Duplicate(); |
+ if (!shmem_handle.IsValid()) { |
+ LOG(ERROR) << "SharedMemory handle duplication failed"; |
return false; |
} |