Index: content/child/child_thread_impl.cc |
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc |
index 135a42492708586084eb99780d57cae7e62f444d..dafc10d833d0d6e4f8e8dace62cabb93b785bc7d 100644 |
--- a/content/child/child_thread_impl.cc |
+++ b/content/child/child_thread_impl.cc |
@@ -684,26 +684,6 @@ mojom::RouteProvider* ChildThreadImpl::GetRemoteRouteProvider() { |
return remote_route_provider_.get(); |
} |
-// static |
-std::unique_ptr<base::SharedMemory> ChildThreadImpl::AllocateSharedMemory( |
- size_t buf_size) { |
- mojo::ScopedSharedBufferHandle mojo_buf = |
- mojo::SharedBufferHandle::Create(buf_size); |
- if (!mojo_buf->is_valid()) { |
- LOG(WARNING) << "Browser failed to allocate shared memory"; |
- return nullptr; |
- } |
- |
- base::SharedMemoryHandle shared_buf; |
- if (mojo::UnwrapSharedMemoryHandle(std::move(mojo_buf), &shared_buf, |
- nullptr, nullptr) != MOJO_RESULT_OK) { |
- LOG(WARNING) << "Browser failed to allocate shared memory"; |
- return nullptr; |
- } |
- |
- return base::MakeUnique<base::SharedMemory>(shared_buf, false); |
-} |
- |
#if defined(OS_LINUX) |
void ChildThreadImpl::SetThreadPriority(base::PlatformThreadId id, |
base::ThreadPriority priority) { |