Index: content/child/resource_dispatcher_unittest.cc |
diff --git a/content/child/resource_dispatcher_unittest.cc b/content/child/resource_dispatcher_unittest.cc |
index 55d2fd0d302af90f6a08bed70db995d656f9c988..09b4de997d1611b1c5344461bd0f30ae5221f153 100644 |
--- a/content/child/resource_dispatcher_unittest.cc |
+++ b/content/child/resource_dispatcher_unittest.cc |
@@ -167,9 +167,9 @@ class ResourceDispatcherTest : public testing::Test, public IPC::Sender { |
shared_memory_map_[request_id] = base::WrapUnique(shared_memory); |
EXPECT_TRUE(shared_memory->CreateAndMapAnonymous(buffer_size)); |
- base::SharedMemoryHandle duplicate_handle; |
- EXPECT_TRUE(shared_memory->ShareToProcess(base::GetCurrentProcessHandle(), |
- &duplicate_handle)); |
+ base::SharedMemoryHandle duplicate_handle = |
+ shared_memory->handle().Duplicate(); |
+ EXPECT_TRUE(duplicate_handle.IsValid()); |
EXPECT_TRUE(dispatcher_->OnMessageReceived(ResourceMsg_SetDataBuffer( |
request_id, duplicate_handle, shared_memory->requested_size(), 0))); |
} |