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

Unified Diff: mojo/edk/system/data_pipe_impl.h

Issue 1350183002: EDK: More scoped_ptr -> std::unique_ptr conversions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: gah 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/data_pipe.cc ('k') | mojo/edk/system/dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/data_pipe_impl.h
diff --git a/mojo/edk/system/data_pipe_impl.h b/mojo/edk/system/data_pipe_impl.h
index 80f808fb46a3174345a224e822b5eeb9e1d421c2..cde495d62156f541ba647abe99e3fb515b0f2a94 100644
--- a/mojo/edk/system/data_pipe_impl.h
+++ b/mojo/edk/system/data_pipe_impl.h
@@ -7,6 +7,8 @@
#include <stdint.h>
+#include <utility>
+
#include "mojo/edk/embedder/platform_handle_vector.h"
#include "mojo/edk/system/data_pipe.h"
#include "mojo/edk/system/handle_signals_state.h"
@@ -120,9 +122,9 @@ class MOJO_SYSTEM_IMPL_EXPORT DataPipeImpl {
size_t* current_num_bytes,
MessageInTransitQueue* message_queue);
- scoped_ptr<DataPipeImpl> ReplaceImpl(scoped_ptr<DataPipeImpl> new_impl)
- MOJO_NO_THREAD_SAFETY_ANALYSIS {
- return owner_->ReplaceImplNoLock(new_impl.Pass());
+ std::unique_ptr<DataPipeImpl> ReplaceImpl(
+ std::unique_ptr<DataPipeImpl> new_impl) MOJO_NO_THREAD_SAFETY_ANALYSIS {
+ return owner_->ReplaceImplNoLock(std::move(new_impl));
}
void SetProducerClosed() MOJO_NO_THREAD_SAFETY_ANALYSIS {
owner_->SetProducerClosedNoLock();
« no previous file with comments | « mojo/edk/system/data_pipe.cc ('k') | mojo/edk/system/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698