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

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

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/multiprocess_message_pipe_unittest.cc ('k') | mojo/edk/system/raw_channel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/raw_channel_posix.cc
diff --git a/mojo/edk/system/raw_channel_posix.cc b/mojo/edk/system/raw_channel_posix.cc
index a40a5d5b130884832ee8f83dd2de593e326c40b0..f1b363d144ef1f6e86533a4d17d7e6b995c191d2 100644
--- a/mojo/edk/system/raw_channel_posix.cc
+++ b/mojo/edk/system/raw_channel_posix.cc
@@ -22,6 +22,7 @@
#include "mojo/edk/embedder/platform_handle.h"
#include "mojo/edk/embedder/platform_handle_vector.h"
#include "mojo/edk/system/transport_data.h"
+#include "mojo/edk/util/make_unique.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
@@ -141,8 +142,8 @@ void RawChannelPosix::EnqueueMessageNoLock(
platform_handles->begin() + i,
platform_handles->begin() + i +
embedder::kPlatformChannelMaxNumHandles));
- fd_message->SetTransportData(make_scoped_ptr(
- new TransportData(fds.Pass(), GetSerializedPlatformHandleSize())));
+ fd_message->SetTransportData(util::MakeUnique<TransportData>(
+ fds.Pass(), GetSerializedPlatformHandleSize()));
RawChannel::EnqueueMessageNoLock(fd_message.Pass());
}
« no previous file with comments | « mojo/edk/system/multiprocess_message_pipe_unittest.cc ('k') | mojo/edk/system/raw_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698