Avoid default arguments at IPC::Channel::CreateClient/Server and IPC::ChannelMojo::Create
The number of callers is not many. Let's pass task runners explicitly
for code health.
This CL is a preparation to replace base::ThreadTaskRunnerHandle::Get
with more appropriate task runners.
Bug: 780785
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I998fb338228069f6c164b13144319c0810b1de2c
Reviewed-on: https://chromium-review.googlesource.com/784910
Reviewed-by: John Abd-El-Malek <[email protected]>
Commit-Queue: Hajime Hoshi <[email protected]>
Cr-Commit-Position: refs/heads/master@{#519547}
diff --git a/ipc/ipc_channel_common.cc b/ipc/ipc_channel_common.cc
index b0d40a5..a572ef75 100644
--- a/ipc/ipc_channel_common.cc
+++ b/ipc/ipc_channel_common.cc
@@ -38,7 +38,8 @@
DCHECK(channel_handle.is_mojo_channel_handle());
return ChannelMojo::Create(
mojo::ScopedMessagePipeHandle(channel_handle.mojo_handle),
- Channel::MODE_CLIENT, listener, ipc_task_runner);
+ Channel::MODE_CLIENT, listener, ipc_task_runner,
+ base::ThreadTaskRunnerHandle::Get());
#endif
}
@@ -53,7 +54,8 @@
DCHECK(channel_handle.is_mojo_channel_handle());
return ChannelMojo::Create(
mojo::ScopedMessagePipeHandle(channel_handle.mojo_handle),
- Channel::MODE_SERVER, listener, ipc_task_runner);
+ Channel::MODE_SERVER, listener, ipc_task_runner,
+ base::ThreadTaskRunnerHandle::Get());
#endif
}