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

Unified Diff: mojo/edk/system/data_pipe_consumer_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/core.cc ('k') | mojo/edk/system/entrypoint_class.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/data_pipe_consumer_dispatcher.cc
diff --git a/mojo/edk/system/data_pipe_consumer_dispatcher.cc b/mojo/edk/system/data_pipe_consumer_dispatcher.cc
index 1d515b2d9067ff6f51fae6a7a8277c1d4614e1fb..304ee2930d824abbea3e9c12f0feb86c39d60fef 100644
--- a/mojo/edk/system/data_pipe_consumer_dispatcher.cc
+++ b/mojo/edk/system/data_pipe_consumer_dispatcher.cc
@@ -32,7 +32,8 @@ Dispatcher::Type DataPipeConsumerDispatcher::GetType() const {
bool DataPipeConsumerDispatcher::SupportsEntrypointClass(
EntrypointClass entrypoint_class) const {
- return (entrypoint_class == EntrypointClass::DATA_PIPE_CONSUMER);
+ return (entrypoint_class == EntrypointClass::NONE ||
+ entrypoint_class == EntrypointClass::DATA_PIPE_CONSUMER);
}
// static
« no previous file with comments | « mojo/edk/system/core.cc ('k') | mojo/edk/system/entrypoint_class.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698