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

Unified Diff: third_party/mojo/src/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: no-media Created 5 years 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: 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(

Powered by Google App Engine
This is Rietveld 408576698