Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index 5a4606baac194535c12e27e9f4890620cc4bdbee..2e02bab1fa03d50cb974e236fbcec85039094a2f 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -2745,8 +2745,8 @@ void RenderProcessHostImpl::CreateSharedRendererHistogramAllocator() { |
std::move(shm), GetID(), "RendererMetrics", /*readonly=*/false)); |
} |
- base::SharedMemoryHandle shm_handle; |
- metrics_allocator_->shared_memory()->ShareToProcess(destination, &shm_handle); |
+ base::SharedMemoryHandle shm_handle = |
+ metrics_allocator_->shared_memory()->handle().Duplicate(); |
Send(new ChildProcessMsg_SetHistogramMemory( |
shm_handle, metrics_allocator_->shared_memory()->mapped_size())); |
} |