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

Unified Diff: content/child/child_thread_impl.cc

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)
Patch Set: rebase Created 3 years, 10 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/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) {

Powered by Google App Engine
This is Rietveld 408576698