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

Unified Diff: mojo/edk/system/message_in_transit.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. 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/message_in_transit.h ('k') | mojo/edk/system/message_pipe_endpoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_in_transit.cc
diff --git a/mojo/edk/system/message_in_transit.cc b/mojo/edk/system/message_in_transit.cc
index 4dbcf7d7dd5837012b36aaaea7dfb50e0e8afc9d..c40b9f52aae4f117bb01e90bce59fe3a684c3afc 100644
--- a/mojo/edk/system/message_in_transit.cc
+++ b/mojo/edk/system/message_in_transit.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "mojo/edk/system/configuration.h"
+#include "mojo/edk/system/dispatcher.h"
#include "mojo/edk/system/transport_data.h"
using mojo::platform::AlignedAlloc;
@@ -155,19 +156,6 @@ void MessageInTransit::SetHandles(std::unique_ptr<HandleVector> handles) {
#endif
}
-void MessageInTransit::SetDispatchers(
- std::unique_ptr<DispatcherVector> dispatchers) {
- DCHECK(dispatchers);
-
- std::unique_ptr<HandleVector> handles(new HandleVector());
- handles->reserve(dispatchers->size());
- for (size_t i = 0; i < dispatchers->size(); i++) {
- handles->push_back(
- Handle(std::move(dispatchers->at(i)), MOJO_HANDLE_RIGHT_NONE));
- }
- SetHandles(std::move(handles));
-}
-
void MessageInTransit::SetTransportData(
std::unique_ptr<TransportData> transport_data) {
DCHECK(transport_data);
« no previous file with comments | « mojo/edk/system/message_in_transit.h ('k') | mojo/edk/system/message_pipe_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698