Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index 1c6011b0d55ee92f77906c65d2619f915dddf862..4ef54da440c3700cdf3399ed9f6e0649c8c859ae 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -867,9 +867,10 @@ bool RenderProcessHostImpl::Init() { |
if (channel_) |
return true; |
- // Ensure that the RouteProvider proxy is re-initialized on next access since |
- // it's associated with a specific Channel instance. |
+ // Ensure that the remote associated interfaces are re-initialized on next |
+ // access since they're associated with a specific Channel instance. |
remote_route_provider_.reset(); |
+ renderer_interface_.reset(); |
base::CommandLine::StringType renderer_prefix; |
// A command prefix is something prepended to the command line of the spawned |
@@ -1449,6 +1450,14 @@ mojom::RouteProvider* RenderProcessHostImpl::GetRemoteRouteProvider() { |
return remote_route_provider_.get(); |
} |
+mojom::Renderer* RenderProcessHostImpl::GetRendererInterface() { |
+ if (!renderer_interface_) { |
+ DCHECK(channel_); |
+ channel_->GetRemoteAssociatedInterface(&renderer_interface_); |
+ } |
+ return renderer_interface_.get(); |
+} |
+ |
void RenderProcessHostImpl::AddRoute(int32_t routing_id, |
IPC::Listener* listener) { |
CHECK(!listeners_.Lookup(routing_id)) << "Found Routing ID Conflict: " |