summaryrefslogtreecommitdiffstats
path: root/content/common/child_process_host_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/child_process_host_impl.cc')
-rw-r--r--content/common/child_process_host_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
index 8b022e5..fb058d3 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -200,9 +200,9 @@ void ChildProcessHostImpl::AllocateSharedMemory(
size_t buffer_size, base::ProcessHandle child_process_handle,
base::SharedMemoryHandle* shared_memory_handle) {
base::SharedMemory shared_buf;
- if (!shared_buf.CreateAndMapAnonymous(buffer_size)) {
+ if (!shared_buf.CreateAnonymous(buffer_size)) {
*shared_memory_handle = base::SharedMemory::NULLHandle();
- NOTREACHED() << "Cannot map shared memory buffer";
+ NOTREACHED() << "Cannot create shared memory buffer";
return;
}
shared_buf.GiveToProcess(child_process_handle, shared_memory_handle);