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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2668153003: Mojo C++ Bindings: Eliminate unbound ThreadSafeInterfacePtr (Closed)
Patch Set: format and 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
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index acb26cb298706cc91ee7cff41a4a5d0bdaadd59b..4b1abe6c23a50a87e4de667b91c5c78696817cf6 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -109,7 +109,6 @@
#include "content/renderer/media/render_media_client.h"
#include "content/renderer/media/renderer_gpu_video_accelerator_factories.h"
#include "content/renderer/media/video_capture_impl_manager.h"
-#include "content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h"
#include "content/renderer/net_info_helper.h"
#include "content/renderer/p2p/socket_dispatcher.h"
#include "content/renderer/render_frame_proxy.h"
@@ -630,11 +629,8 @@ void RenderThreadImpl::Init(
gpu_ = ui::Gpu::Create(GetRemoteInterfaces(), GetIOTaskRunner());
}
- thread_safe_associated_interface_ptr_provider_ =
- base::MakeUnique<ThreadSafeAssociatedInterfacePtrProvider>(channel());
- thread_safe_render_message_filter_ =
- thread_safe_associated_interface_ptr_provider_
- ->CreateInterfacePtr<mojom::RenderMessageFilter>();
+ channel()->GetThreadSafeRemoteAssociatedInterface(
+ &thread_safe_render_message_filter_);
shared_bitmap_manager_.reset(
new ChildSharedBitmapManager(thread_safe_render_message_filter_));
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698