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 86542396b12f3788cac8e74a7c60eb6dc33552e5..34c1128304cb726c5a65401ce6dada0f794c57d8 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -866,9 +866,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 |
@@ -1444,6 +1445,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: " |