| Index: mojo/edk/embedder/simple_platform_shared_buffer.cc
|
| diff --git a/mojo/edk/embedder/simple_platform_shared_buffer.cc b/mojo/edk/embedder/simple_platform_shared_buffer.cc
|
| index c09eb8072a99de902f1ac413bc4adb74c284f2eb..b33e5cdec8fdc943c7c92ee4cfb12e4903f1f8cc 100644
|
| --- a/mojo/edk/embedder/simple_platform_shared_buffer.cc
|
| +++ b/mojo/edk/embedder/simple_platform_shared_buffer.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "mojo/edk/embedder/simple_platform_shared_buffer.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "base/logging.h"
|
| #include "mojo/edk/embedder/platform_handle_utils.h"
|
|
|
| @@ -34,7 +36,7 @@ SimplePlatformSharedBuffer::CreateFromPlatformHandle(
|
| DCHECK_GT(num_bytes, 0u);
|
|
|
| SimplePlatformSharedBuffer* rv = new SimplePlatformSharedBuffer(num_bytes);
|
| - if (!rv->InitFromPlatformHandle(platform_handle.Pass())) {
|
| + if (!rv->InitFromPlatformHandle(std::move(platform_handle))) {
|
| // We can't just delete it directly, due to the "in destructor" (debug)
|
| // check.
|
| scoped_refptr<SimplePlatformSharedBuffer> deleter(rv);
|
| @@ -82,7 +84,7 @@ ScopedPlatformHandle SimplePlatformSharedBuffer::DuplicatePlatformHandle() {
|
|
|
| ScopedPlatformHandle SimplePlatformSharedBuffer::PassPlatformHandle() {
|
| DCHECK(HasOneRef());
|
| - return handle_.Pass();
|
| + return std::move(handle_);
|
| }
|
|
|
| SimplePlatformSharedBuffer::SimplePlatformSharedBuffer(size_t num_bytes)
|
|
|