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

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

Issue 1350503004: Some easy conversions of scoped_ptr -> std::unique_ptr in the EDK. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 months 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
« no previous file with comments | « mojo/edk/system/local_data_pipe_impl.h ('k') | mojo/edk/system/memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/local_data_pipe_impl.cc
diff --git a/mojo/edk/system/local_data_pipe_impl.cc b/mojo/edk/system/local_data_pipe_impl.cc
index 195e155faf3a7260e90c096d1c12d51147eb0fb7..1af0f92d00643ae2093ff867f4211d6a9e00b903 100644
--- a/mojo/edk/system/local_data_pipe_impl.cc
+++ b/mojo/edk/system/local_data_pipe_impl.cc
@@ -13,6 +13,7 @@
#include <string.h>
#include <algorithm>
+#include <utility>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -193,7 +194,7 @@ bool LocalDataPipeImpl::ProducerEndSerialize(
// Note: Keep |*this| alive until the end of this method, to make things
// slightly easier on ourselves.
scoped_ptr<DataPipeImpl> self(ReplaceImpl(make_scoped_ptr(
- new RemoteProducerDataPipeImpl(channel_endpoint.get(), buffer_.Pass(),
+ new RemoteProducerDataPipeImpl(channel_endpoint.get(), std::move(buffer_),
start_index_, current_num_bytes_))));
*actual_size = sizeof(SerializedDataPipeProducerDispatcher) +
« no previous file with comments | « mojo/edk/system/local_data_pipe_impl.h ('k') | mojo/edk/system/memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698