Chromium Code Reviews

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

Issue 1956843002: EDK: Make TransportData preserve handle rights. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | mojo/edk/system/message_in_transit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/channel.cc
diff --git a/mojo/edk/system/channel.cc b/mojo/edk/system/channel.cc
index b52cba61157a5658a59b6cae5495913a75e488ad..7ce9e76d58a8ab918bd1ac4825149f97a9efbd56 100644
--- a/mojo/edk/system/channel.cc
+++ b/mojo/edk/system/channel.cc
@@ -408,7 +408,7 @@ void Channel::OnReadMessageForEndpoint(
std::unique_ptr<MessageInTransit> message(new MessageInTransit(message_view));
if (message_view.transport_data_buffer_size() > 0) {
DCHECK(message_view.transport_data_buffer());
- message->SetDispatchers(TransportData::DeserializeDispatchers(
+ message->SetHandles(TransportData::DeserializeHandles(
message_view.transport_data_buffer(),
message_view.transport_data_buffer_size(), std::move(platform_handles),
this));
« no previous file with comments | « no previous file | mojo/edk/system/message_in_transit.h » ('j') | no next file with comments »

Powered by Google App Engine