Fuchsia: Include some Posix-only code paths in ipc.
Some Posix-only instances were missed when disabling the OS_POSIX
macro for the Fuchsia build.
Bug: 836416
Change-Id: I291465a50813e984bdca223b1e533c2ad624062c
Reviewed-on: https://chromium-review.googlesource.com/1070625
Reviewed-by: Ken Rockot <[email protected]>
Commit-Queue: Fabrice de Gans-Riberi <[email protected]>
Cr-Commit-Position: refs/heads/master@{#561569}
diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc
index 7aef010..52cba022 100644
--- a/ipc/ipc_channel_proxy.cc
+++ b/ipc/ipc_channel_proxy.cc
@@ -442,7 +442,7 @@
void ChannelProxy::Init(const IPC::ChannelHandle& channel_handle,
Channel::Mode mode,
bool create_pipe_now) {
-#if defined(OS_POSIX)
+#if defined(OS_POSIX) || defined(OS_FUCHSIA)
// When we are creating a server on POSIX, we need its file descriptor
// to be created immediately so that it can be accessed and passed
// to other processes. Forcing it to be created immediately avoids
@@ -450,7 +450,7 @@
if (mode & Channel::MODE_SERVER_FLAG) {
create_pipe_now = true;
}
-#endif // defined(OS_POSIX)
+#endif // defined(OS_POSIX) || defined(OS_FUCHSIA)
Init(
ChannelFactory::Create(channel_handle, mode, context_->ipc_task_runner()),
create_pipe_now);