Index: ipc/ipc_sync_channel.cc |
diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc |
index e57cefdb8788bdd676589f959026672067d93c0d..0e3c8baebac1c9b14975ba194c7d1c6a2c30885c 100644 |
--- a/ipc/ipc_sync_channel.cc |
+++ b/ipc/ipc_sync_channel.cc |
@@ -229,7 +229,7 @@ base::LazyInstance<base::ThreadLocalPointer<SyncChannel::ReceivedSyncMsgQueue> > |
SyncChannel::SyncContext::SyncContext( |
Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
WaitableEvent* shutdown_event) |
: ChannelProxy::Context(listener, ipc_task_runner), |
received_sync_msgs_(ReceivedSyncMsgQueue::AddContext()), |
@@ -410,7 +410,7 @@ scoped_ptr<SyncChannel> SyncChannel::Create( |
const IPC::ChannelHandle& channel_handle, |
Channel::Mode mode, |
Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
bool create_pipe_now, |
base::WaitableEvent* shutdown_event) { |
scoped_ptr<SyncChannel> channel = |
@@ -423,7 +423,7 @@ scoped_ptr<SyncChannel> SyncChannel::Create( |
scoped_ptr<SyncChannel> SyncChannel::Create( |
scoped_ptr<ChannelFactory> factory, |
Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
bool create_pipe_now, |
base::WaitableEvent* shutdown_event) { |
scoped_ptr<SyncChannel> channel = |
@@ -435,7 +435,7 @@ scoped_ptr<SyncChannel> SyncChannel::Create( |
// static |
scoped_ptr<SyncChannel> SyncChannel::Create( |
Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
WaitableEvent* shutdown_event) { |
return make_scoped_ptr( |
new SyncChannel(listener, ipc_task_runner, shutdown_event)); |
@@ -443,7 +443,7 @@ scoped_ptr<SyncChannel> SyncChannel::Create( |
SyncChannel::SyncChannel( |
Listener* listener, |
- base::SingleThreadTaskRunner* ipc_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner, |
WaitableEvent* shutdown_event) |
: ChannelProxy(new SyncContext(listener, ipc_task_runner, shutdown_event)) { |
// The current (listener) thread must be distinct from the IPC thread, or else |