Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 273f864216521154bca581126385875967bd4a02..1eb189a702119a0543363d7cc9f44c40eaed599f 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -534,6 +534,7 @@ WebContentsImpl* WebContentsImpl::CreateWithOpener( |
// bit to true. |
new_contents->is_subframe_ = true; |
} |
+ |
new_contents->Init(params); |
return new_contents; |
} |
@@ -1378,8 +1379,9 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) { |
#if defined(MOJO_SHELL_CLIENT) |
if (MojoShellConnection::Get() && |
base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kUseMusInRenderer)) { |
- view_.reset(new WebContentsViewMus(this, view_.Pass(), |
+ switches::kUseMusInRenderer) && |
+ params.mus_window) { |
+ view_.reset(new WebContentsViewMus(this, params.mus_window, view_.Pass(), |
&render_view_host_delegate_view_)); |
} |
#endif |