Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()));
}
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_gamepad_host.cc ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698