Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2136313002: Fix --use-mus-in-renderer for mus+ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/mus/render_widget_window_tree_client_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 660b52bedbb249e4e9c8877f6dd009aa38083e2b..0ca11970bf6422921335b358ec0ea8bed7144d77 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -852,7 +852,7 @@ void RenderThreadImpl::Init(
#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
// We may not have a MojoShellConnection object in tests that directly
// instantiate a RenderThreadImpl.
- if (MojoShellConnection::GetForProcess() &&
+ if (ChildThread::Get()->GetMojoShellConnection() &&
base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kUseMusInRenderer))
CreateRenderWidgetWindowTreeClientFactory();
@@ -1837,8 +1837,7 @@ RenderThreadImpl::CreateCompositorOutputSurface(
use_software = true;
#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
- auto* shell_connection = MojoShellConnection::GetForProcess();
- if (shell_connection && !use_software &&
+ if (ChildThread::Get()->GetMojoShellConnection() && !use_software &&
command_line.HasSwitch(switches::kUseMusInRenderer)) {
RenderWidgetMusConnection* connection =
RenderWidgetMusConnection::GetOrCreate(routing_id);
« no previous file with comments | « content/renderer/mus/render_widget_window_tree_client_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698