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

Unified Diff: mojo/edk/embedder/system_impl_private_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/system_impl_private_entrypoints.cc
diff --git a/mojo/edk/embedder/system_impl_private_entrypoints.cc b/mojo/edk/embedder/system_impl_private_entrypoints.cc
index fb705c4038933c603f5445819f843362931a240e..6afdf2d4ad97f21c037548220f9d7d6558149da6 100644
--- a/mojo/edk/embedder/system_impl_private_entrypoints.cc
+++ b/mojo/edk/embedder/system_impl_private_entrypoints.cc
@@ -100,6 +100,17 @@ MojoResult MojoSystemImplGetRights(MojoSystemImpl system,
return core->GetRights(handle, MakeUserPointer(rights));
}
+MojoResult MojoSystemImplReplaceHandleWithReducedRights(
+ MojoSystemImpl system,
+ MojoHandle handle,
+ MojoHandleRights rights_to_remove,
+ MojoHandle* replacement_handle) {
+ mojo::system::Core* core = static_cast<mojo::system::Core*>(system);
+ DCHECK(core);
+ return core->ReplaceHandleWithReducedRights(
+ handle, rights_to_remove, MakeUserPointer(replacement_handle));
+}
+
MojoResult MojoSystemImplDuplicateHandleWithReducedRights(
MojoSystemImpl system,
MojoHandle handle,

Powered by Google App Engine
This is Rietveld 408576698