| Index: third_party/mojo/src/mojo/edk/system/shared_buffer_dispatcher.cc
|
| diff --git a/third_party/mojo/src/mojo/edk/system/shared_buffer_dispatcher.cc b/third_party/mojo/src/mojo/edk/system/shared_buffer_dispatcher.cc
|
| index 75c85cfaa6707ee1f56bd46e08f19c0e05d9c959..8c64e1ac6b780f943e3529832da005ab96c21a49 100644
|
| --- a/third_party/mojo/src/mojo/edk/system/shared_buffer_dispatcher.cc
|
| +++ b/third_party/mojo/src/mojo/edk/system/shared_buffer_dispatcher.cc
|
| @@ -5,6 +5,7 @@
|
| #include "third_party/mojo/src/mojo/edk/system/shared_buffer_dispatcher.h"
|
|
|
| #include <limits>
|
| +#include <utility>
|
|
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| @@ -77,7 +78,7 @@ MojoResult SharedBufferDispatcher::Create(
|
| if (!shared_buffer)
|
| return MOJO_RESULT_RESOURCE_EXHAUSTED;
|
|
|
| - *result = CreateInternal(shared_buffer.Pass());
|
| + *result = CreateInternal(std::move(shared_buffer));
|
| return MOJO_RESULT_OK;
|
| }
|
|
|
| @@ -132,7 +133,7 @@ scoped_refptr<SharedBufferDispatcher> SharedBufferDispatcher::Deserialize(
|
| return nullptr;
|
| }
|
|
|
| - return CreateInternal(shared_buffer.Pass());
|
| + return CreateInternal(std::move(shared_buffer));
|
| }
|
|
|
| SharedBufferDispatcher::SharedBufferDispatcher(
|
| @@ -186,7 +187,7 @@ scoped_refptr<Dispatcher>
|
| SharedBufferDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock() {
|
| mutex().AssertHeld();
|
| DCHECK(shared_buffer_);
|
| - return CreateInternal(shared_buffer_.Pass());
|
| + return CreateInternal(std::move(shared_buffer_));
|
| }
|
|
|
| MojoResult SharedBufferDispatcher::DuplicateBufferHandleImplNoLock(
|
|
|