Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index fb53fa455ee617115526282ee1fe7caadeb7ee12..37f7481f73c48d98ee7ab40b377f759f96c901ed 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -210,6 +210,11 @@ |
#include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" |
#endif |
+#if defined(MOJO_SHELL_CLIENT) |
+#include "content/public/common/mojo_shell_connection.h" |
+#include "content/renderer/render_widget_view_mus.h" |
+#endif // defined(MOJO_SHELL_CLIENT) |
+ |
using blink::WebAXObject; |
using blink::WebApplicationCacheHost; |
using blink::WebApplicationCacheHostClient; |
@@ -661,6 +666,10 @@ RenderViewImpl::RenderViewImpl(CompositorDependencies* compositor_deps, |
void RenderViewImpl::Initialize(const ViewMsg_New_Params& params, |
bool was_created_by_renderer) { |
routing_id_ = params.view_id; |
+#if defined(MOJO_SHELL_CLIENT) |
+ if (MojoShellConnection::Get() && routing_id_) |
+ new RenderWidgetViewMus(routing_id_); |
+#endif |
int opener_view_routing_id; |
WebFrame* opener_frame = RenderFrameImpl::ResolveOpener( |