Commit ff71d680 authored by sadrul's avatar sadrul Committed by Commit bot

mus: Make --use-mus-in-renderer work again.

. It is necessary to send the --use-mus-in-renderer flag to the renderer.
. Allow content_browser to connect to the renderer and get a handle to
  a RenderWidgetWindowTreeClientFactory.

BUG=none

Review-Url: https://codereview.chromium.org/2037533002
Cr-Commit-Position: refs/heads/master@{#397759}
parent 58241a81
...@@ -1565,6 +1565,9 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( ...@@ -1565,6 +1565,9 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
#endif #endif
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
switches::kDisableVaapiAcceleratedVideoEncode, switches::kDisableVaapiAcceleratedVideoEncode,
#endif
#if defined(MOJO_SHELL_CLIENT)
switches::kUseMusInRenderer,
#endif #endif
}; };
renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
"capabilities": { "capabilities": {
"required": { "required": {
"*": { "classes": [ "app" ] }, "*": { "classes": [ "app" ] },
"exe:content_renderer": {
"interfaces": [ "content::mojom::RenderWidgetWindowTreeClientFactory" ]
},
"mojo:shell": { "mojo:shell": {
"classes": [ "classes": [
"shell:client_process", "shell:client_process",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment