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

Unified Diff: mojo/edk/embedder/entrypoints.cc

Issue 2056513002: Plumb MojoReplaceHandleWithReducedRights() out. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_replace_reduce_1
Patch Set: Created 4 years, 6 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
Index: mojo/edk/embedder/entrypoints.cc
diff --git a/mojo/edk/embedder/entrypoints.cc b/mojo/edk/embedder/entrypoints.cc
index 260eae0b83f6e1b3a3742dee1c2fcd7707e1c22c..c636e440d1f8c6276adbcb379a10aec3c71eff95 100644
--- a/mojo/edk/embedder/entrypoints.cc
+++ b/mojo/edk/embedder/entrypoints.cc
@@ -31,6 +31,13 @@ MojoResult MojoGetRights(MojoHandle handle, MojoHandleRights* rights) {
return g_core->GetRights(handle, MakeUserPointer(rights));
}
+MojoResult MojoReplaceHandleWithReducedRights(MojoHandle handle,
+ MojoHandleRights rights_to_remove,
+ MojoHandle* replacement_handle) {
+ return g_core->ReplaceHandleWithReducedRights(
+ handle, rights_to_remove, MakeUserPointer(replacement_handle));
+}
+
MojoResult MojoDuplicateHandleWithReducedRights(
MojoHandle handle,
MojoHandleRights rights_to_remove,
« no previous file with comments | « no previous file | mojo/edk/embedder/system_impl_private_entrypoints.cc » ('j') | mojo/nacl/sfi/nacl_bindings/mojo_irt.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698