Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index f272f2654c6d1c6da9712c09be72bd7eceb9ff3a..c7fc7f28270f90452680f7afdfc369f127cd19ab 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -821,8 +821,7 @@ std::unique_ptr<IPC::ChannelProxy> RenderProcessHostImpl::CreateChannelProxy( |
// for Android WebView to maintain backward compatibility. |
// See crbug.com/526842 for details. |
#if defined(OS_ANDROID) |
- if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kIPCSyncCompositing)) { |
+ if (GetContentClient()->UsingSynchronousCompositing()) { |
return IPC::SyncChannel::Create( |
IPC::ChannelMojo::CreateServerFactory(std::move(handle)), this, |
runner.get(), true, &never_signaled_); |
@@ -836,8 +835,7 @@ std::unique_ptr<IPC::ChannelProxy> RenderProcessHostImpl::CreateChannelProxy( |
// Do NOT expand ifdef or run time condition checks here! See comment above. |
#if defined(OS_ANDROID) |
- if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kIPCSyncCompositing)) { |
+ if (GetContentClient()->UsingSynchronousCompositing()) { |
return IPC::SyncChannel::Create(channel_id, IPC::Channel::MODE_SERVER, this, |
runner.get(), true, &never_signaled_); |
} |
@@ -1567,7 +1565,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
switches::kDisableLowEndDeviceMode, |
#if defined(OS_ANDROID) |
switches::kDisableUnifiedMediaPipeline, |
- switches::kIPCSyncCompositing, |
switches::kRendererWaitForJavaDebugger, |
#endif |
#if defined(OS_MACOSX) |