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

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

Issue 1953293003: EDK: Add handle rights checking to the various entrypoints. (Closed) Base URL: https://github.com/domokit/mojo.git@work788_edk_handle_13.9-x-work787_edk_handle_13.8
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/entrypoint_class.h ('k') | mojo/edk/system/message_pipe_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_pipe_dispatcher.cc
diff --git a/mojo/edk/system/message_pipe_dispatcher.cc b/mojo/edk/system/message_pipe_dispatcher.cc
index 2f72bbd3c1e2e0642712ac4559574f53f877bfa1..e0f02fcafce3d7755deac3a3cafa2a6ce6d3ecf3 100644
--- a/mojo/edk/system/message_pipe_dispatcher.cc
+++ b/mojo/edk/system/message_pipe_dispatcher.cc
@@ -77,7 +77,8 @@ Dispatcher::Type MessagePipeDispatcher::GetType() const {
bool MessagePipeDispatcher::SupportsEntrypointClass(
EntrypointClass entrypoint_class) const {
- return (entrypoint_class == EntrypointClass::MESSAGE_PIPE);
+ return (entrypoint_class == EntrypointClass::NONE ||
+ entrypoint_class == EntrypointClass::MESSAGE_PIPE);
}
// static
« no previous file with comments | « mojo/edk/system/entrypoint_class.h ('k') | mojo/edk/system/message_pipe_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698