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

Unified Diff: mojo/public/platform/nacl/libmojo.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/public/platform/nacl/libmojo.cc
diff --git a/mojo/public/platform/nacl/libmojo.cc b/mojo/public/platform/nacl/libmojo.cc
index c25aff218ce16960919c3d4157e747d35bbb7d49..81fb436175564bf89048aaf8d9c73204fd0d2e63 100644
--- a/mojo/public/platform/nacl/libmojo.cc
+++ b/mojo/public/platform/nacl/libmojo.cc
@@ -60,6 +60,16 @@ MojoResult MojoGetRights(MojoHandle handle, MojoHandleRights* rights) {
return irt_mojo->MojoGetRights(handle, rights);
}
+MojoResult MojoReplaceHandleWithReducedRights(MojoHandle handle,
+ MojoHandleRights rights_to_remove,
+ MojoHandle* replacement_handle) {
+ struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
+ if (!irt_mojo)
+ abort();
+ return irt_mojo->MojoReplaceHandleWithReducedRights(handle, rights_to_remove,
+ replacement_handle);
+}
+
MojoResult MojoDuplicateHandleWithReducedRights(
MojoHandle handle,
MojoHandleRights rights_to_remove,

Powered by Google App Engine
This is Rietveld 408576698