Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(841)

Unified Diff: mojo/edk/system/shared_buffer_dispatcher.cc

Issue 1477643002: Remove the TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basepass
Patch Set: type-with-move: . Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/edk/system/shared_buffer_dispatcher.cc
diff --git a/mojo/edk/system/shared_buffer_dispatcher.cc b/mojo/edk/system/shared_buffer_dispatcher.cc
index 1f15ea2d5760596076f9e0010c53c2d37635f49b..85732cfcfc272d98cd64dac99667500e3458fbca 100644
--- a/mojo/edk/system/shared_buffer_dispatcher.cc
+++ b/mojo/edk/system/shared_buffer_dispatcher.cc
@@ -5,6 +5,7 @@
#include "mojo/edk/system/shared_buffer_dispatcher.h"
#include <limits>
+#include <utility>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -76,7 +77,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;
}
@@ -129,7 +130,7 @@ scoped_refptr<SharedBufferDispatcher> SharedBufferDispatcher::Deserialize(
return nullptr;
}
- return CreateInternal(shared_buffer.Pass());
+ return CreateInternal(std::move(shared_buffer));
}
SharedBufferDispatcher::SharedBufferDispatcher(
@@ -183,7 +184,7 @@ scoped_refptr<Dispatcher>
SharedBufferDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock() {
lock().AssertAcquired();
DCHECK(shared_buffer_);
- return CreateInternal(shared_buffer_.Pass());
+ return CreateInternal(std::move(shared_buffer_));
}
MojoResult SharedBufferDispatcher::DuplicateBufferHandleImplNoLock(

Powered by Google App Engine
This is Rietveld 408576698