Commit cabba709 authored by Hajime Hoshi's avatar Hajime Hoshi Committed by Commit Bot

Refactoring: Remove one of SyncChannel::Create

This function is not used anywhere.

Change-Id: I4116ef0634a1db7b1aacfc5326e662ce3abfe136
Reviewed-on: https://chromium-review.googlesource.com/1144816Reviewed-by: default avatarKen Rockot <rockot@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577446}
parent f09b8981
......@@ -545,20 +545,6 @@ std::unique_ptr<SyncChannel> SyncChannel::Create(
return channel;
}
// static
std::unique_ptr<SyncChannel> SyncChannel::Create(
std::unique_ptr<ChannelFactory> factory,
Listener* listener,
const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner,
const scoped_refptr<base::SingleThreadTaskRunner>& listener_task_runner,
bool create_pipe_now,
base::WaitableEvent* shutdown_event) {
std::unique_ptr<SyncChannel> channel =
Create(listener, ipc_task_runner, listener_task_runner, shutdown_event);
channel->Init(std::move(factory), create_pipe_now);
return channel;
}
// static
std::unique_ptr<SyncChannel> SyncChannel::Create(
Listener* listener,
......
......@@ -33,7 +33,6 @@ class SyncHandleRegistry;
namespace IPC {
class ChannelFactory;
class SyncMessage;
// This is similar to ChannelProxy, with the added feature of supporting sending
......@@ -88,14 +87,6 @@ class COMPONENT_EXPORT(IPC) SyncChannel : public ChannelProxy {
bool create_pipe_now,
base::WaitableEvent* shutdown_event);
static std::unique_ptr<SyncChannel> Create(
std::unique_ptr<ChannelFactory> factory,
Listener* listener,
const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner,
const scoped_refptr<base::SingleThreadTaskRunner>& listener_task_runner,
bool create_pipe_now,
base::WaitableEvent* shutdown_event);
// Creates an uninitialized sync channel. Call ChannelProxy::Init to
// initialize the channel. This two-step setup allows message filters to be
// added before any messages are sent or received.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment