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 24197514847a4464bae2e636d90baa1a58b7db02..07eb006ee1b59deee065ee9a120c94c468cd3281 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -80,6 +80,7 @@ |
#include "content/browser/message_port_message_filter.h" |
#include "content/browser/mime_registry_message_filter.h" |
#include "content/browser/mojo/mojo_application_host.h" |
+#include "content/browser/mojo/mojo_shell_client_host.h" |
#include "content/browser/navigator_connect/service_port_service_impl.h" |
#include "content/browser/notifications/notification_message_filter.h" |
#include "content/browser/permissions/permission_service_context.h" |
@@ -124,6 +125,7 @@ |
#include "content/common/in_process_child_thread_params.h" |
#include "content/common/mojo/channel_init.h" |
#include "content/common/mojo/mojo_messages.h" |
+#include "content/common/mojo/mojo_shell_connection_impl.h" |
#include "content/common/render_process_messages.h" |
#include "content/common/resource_messages.h" |
#include "content/common/site_isolation_policy.h" |
@@ -230,11 +232,6 @@ |
#include "content/common/media/media_stream_messages.h" |
#endif |
-#if defined(MOJO_SHELL_CLIENT) |
-#include "content/browser/mojo/mojo_shell_client_host.h" |
-#include "content/common/mojo/mojo_shell_connection_impl.h" |
-#endif |
- |
#if defined(OS_WIN) |
#define IntToStringType base::IntToString16 |
#else |
@@ -627,9 +624,7 @@ RenderProcessHostImpl::RenderProcessHostImpl( |
#endif // defined(OS_MACOSX) && !defined(OS_IOS) |
#endif // USE_ATTACHMENT_BROKER |
-#if defined(MOJO_SHELL_CLIENT) |
RegisterChildWithExternalShell(id_, this); |
-#endif |
} |
// static |
@@ -1618,11 +1613,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
renderer_cmd->AppendSwitch(switches::kWaitForDebugger); |
} |
} |
- |
-#if defined(MOJO_SHELL_CLIENT) |
- if (IsRunningInMojoShell()) |
- renderer_cmd->AppendSwitch(switches::kEnableMojoShellConnection); |
-#endif |
} |
base::ProcessHandle RenderProcessHostImpl::GetHandle() const { |
@@ -2575,10 +2565,8 @@ void RenderProcessHostImpl::OnProcessLaunched() { |
process_handle, true))); |
} |
-#if defined(MOJO_SHELL_CLIENT) |
// Send the mojo shell handle to the renderer. |
SendExternalMojoShellHandleToChild(GetHandle(), this); |
-#endif |
// Allow Mojo to be setup before the renderer sees any Chrome IPC messages. |
// This way, Mojo can be safely used from the renderer in response to any |