| Index: content/renderer/render_thread_impl.cc
|
| diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
| index 1b898bb2752d3ee07652664f82fadc9a8d115e0f..c60d63ad8a2814562a3bc8b025719ec5d644e20d 100644
|
| --- a/content/renderer/render_thread_impl.cc
|
| +++ b/content/renderer/render_thread_impl.cc
|
| @@ -201,7 +201,7 @@
|
| #include "v8/src/third_party/vtune/v8-vtune.h"
|
| #endif
|
|
|
| -#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
|
| +#if defined(USE_AURA)
|
| #include "content/public/common/mojo_shell_connection.h"
|
| #include "content/renderer/mus/render_widget_mus_connection.h"
|
| #include "content/renderer/mus/render_widget_window_tree_client_factory.h"
|
| @@ -643,7 +643,7 @@ void RenderThreadImpl::Init(
|
| // Register this object as the main thread.
|
| ChildProcess::current()->set_main_thread(this);
|
|
|
| -#if defined(MOJO_SHELL_CLIENT)
|
| +#if defined(USE_AURA)
|
| if (IsRunningInMash())
|
| ui::GpuService::Initialize(GetMojoShellConnection()->GetConnector());
|
| #endif
|
| @@ -719,7 +719,7 @@ void RenderThreadImpl::Init(
|
|
|
| AddFilter((new ServiceWorkerContextMessageFilter())->GetFilter());
|
|
|
| -#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
|
| +#if defined(USE_AURA)
|
| if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kUseMusInRenderer)) {
|
| CreateRenderWidgetWindowTreeClientFactory(GetMojoShellConnection());
|
| @@ -1804,7 +1804,7 @@ scoped_refptr<gpu::GpuChannelHost> RenderThreadImpl::EstablishGpuChannelSync(
|
| ChildProcess::current()->GetShutDownEvent(),
|
| gpu_memory_buffer_manager());
|
| } else {
|
| -#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
|
| +#if defined(USE_AURA)
|
| gpu_channel_ = ui::GpuService::GetInstance()->EstablishGpuChannelSync();
|
| #else
|
| NOTREACHED();
|
| @@ -1824,7 +1824,7 @@ RenderThreadImpl::CreateCompositorOutputSurface(
|
| if (command_line.HasSwitch(switches::kDisableGpuCompositing))
|
| use_software = true;
|
|
|
| -#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
|
| +#if defined(USE_AURA)
|
| if (GetMojoShellConnection() && !use_software &&
|
| command_line.HasSwitch(switches::kUseMusInRenderer)) {
|
| RenderWidgetMusConnection* connection =
|
|
|