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

Unified Diff: content/child/child_thread_impl.cc

Issue 2488913003: Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Clean-up Created 4 years, 1 month 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 927427d2d59ebb1036ed206723f3800312d0f9f4..882ca37effef40009bb5199724cd6b19e0570268 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -588,8 +588,11 @@ void ChildThreadImpl::Init(const Options& options) {
g_quit_closure.Get().BindToMainThread();
#endif
+ mojom::SharedMemoryAllocatorPtr shared_memory_allocator;
+ GetRemoteInterfaces()->GetInterface(&shared_memory_allocator);
shared_bitmap_manager_.reset(
- new ChildSharedBitmapManager(thread_safe_sender()));
+ new ChildSharedBitmapManager(thread_safe_sender(),
+ std::move(shared_memory_allocator)));
client_discardable_shared_memory_manager_delegate_ =
base::MakeUnique<ClientDiscardableSharedMemoryManagerDelegate>(

Powered by Google App Engine
This is Rietveld 408576698