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

Unified Diff: mojo/edk/system/transport_data.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/transport_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/transport_data.cc
diff --git a/mojo/edk/system/transport_data.cc b/mojo/edk/system/transport_data.cc
index 8d9b229b08a4d6b85ed052ea51a90d067dd755b3..417a6135f42402feefb6c83dd64b4fe9f43af614 100644
--- a/mojo/edk/system/transport_data.cc
+++ b/mojo/edk/system/transport_data.cc
@@ -60,7 +60,7 @@ struct TransportData::PrivateStructForCompileAsserts {
"alignment");
};
-TransportData::TransportData(scoped_ptr<DispatcherVector> dispatchers,
+TransportData::TransportData(std::unique_ptr<DispatcherVector> dispatchers,
Channel* channel)
: buffer_size_() {
DCHECK(dispatchers);
@@ -306,7 +306,7 @@ void TransportData::GetPlatformHandleTable(const void* transport_data_buffer,
}
// static
-scoped_ptr<DispatcherVector> TransportData::DeserializeDispatchers(
+std::unique_ptr<DispatcherVector> TransportData::DeserializeDispatchers(
const void* buffer,
size_t buffer_size,
embedder::ScopedPlatformHandleVectorPtr platform_handles,
@@ -317,7 +317,8 @@ scoped_ptr<DispatcherVector> TransportData::DeserializeDispatchers(
const Header* header = static_cast<const Header*>(buffer);
const size_t num_handles = header->num_handles;
- scoped_ptr<DispatcherVector> dispatchers(new DispatcherVector(num_handles));
+ std::unique_ptr<DispatcherVector> dispatchers(
+ new DispatcherVector(num_handles));
const HandleTableEntry* handle_table =
reinterpret_cast<const HandleTableEntry*>(
@@ -335,7 +336,7 @@ scoped_ptr<DispatcherVector> TransportData::DeserializeDispatchers(
channel, handle_table[i].type, source, size, platform_handles.get());
}
- return dispatchers.Pass();
+ return dispatchers;
}
} // namespace system
« no previous file with comments | « mojo/edk/system/transport_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698