| Index: ipc/ipc_sync_channel.cc
|
| diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc
|
| index 8e559146ba7ff58b68e871c0ffc43fb80a3cccda..d1942112d9a237a754720ba9c06f63603427e9a6 100644
|
| --- a/ipc/ipc_sync_channel.cc
|
| +++ b/ipc/ipc_sync_channel.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <stddef.h>
|
| #include <stdint.h>
|
| +#include <utility>
|
|
|
| #include "base/bind.h"
|
| #include "base/lazy_instance.h"
|
| @@ -416,7 +417,7 @@ scoped_ptr<SyncChannel> SyncChannel::Create(
|
| scoped_ptr<SyncChannel> channel =
|
| Create(listener, ipc_task_runner, shutdown_event);
|
| channel->Init(channel_handle, mode, create_pipe_now);
|
| - return channel.Pass();
|
| + return channel;
|
| }
|
|
|
| // static
|
| @@ -428,8 +429,8 @@ scoped_ptr<SyncChannel> SyncChannel::Create(
|
| base::WaitableEvent* shutdown_event) {
|
| scoped_ptr<SyncChannel> channel =
|
| Create(listener, ipc_task_runner, shutdown_event);
|
| - channel->Init(factory.Pass(), create_pipe_now);
|
| - return channel.Pass();
|
| + channel->Init(std::move(factory), create_pipe_now);
|
| + return channel;
|
| }
|
|
|
| // static
|
|
|