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

Unified Diff: content/browser/browser_child_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/browser_child_process_host_impl.cc
diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc
index 8006a66890dfb0764e8da6dfeec20033b87745f1..3ddc8b5f021d7176faa6e95602036e05b9983453 100644
--- a/content/browser/browser_child_process_host_impl.cc
+++ b/content/browser/browser_child_process_host_impl.cc
@@ -512,9 +512,8 @@ void BrowserChildProcessHostImpl::CreateMetricsAllocator() {
void BrowserChildProcessHostImpl::ShareMetricsAllocatorToProcess() {
if (metrics_allocator_) {
- base::SharedMemoryHandle shm_handle;
- metrics_allocator_->shared_memory()->ShareToProcess(data_.handle,
- &shm_handle);
+ base::SharedMemoryHandle shm_handle =
+ metrics_allocator_->shared_memory()->handle().Duplicate();
Send(new ChildProcessMsg_SetHistogramMemory(
shm_handle, metrics_allocator_->shared_memory()->mapped_size()));
}

Powered by Google App Engine
This is Rietveld 408576698