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

Unified Diff: src/trusted/service_runtime/sel_main_chrome.c

Issue 9960060: Handle-passing: Allow a handle-passing function to be supplied by Chromium (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Review Created 8 years, 8 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 | « src/trusted/service_runtime/sel_main_chrome.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/sel_main_chrome.c
diff --git a/src/trusted/service_runtime/sel_main_chrome.c b/src/trusted/service_runtime/sel_main_chrome.c
index 7543bffcd13b741d696c9c418c6110b1c0993832..1c1b06d00c0a2a66b1ecad0658bf845f8e5319c2 100644
--- a/src/trusted/service_runtime/sel_main_chrome.c
+++ b/src/trusted/service_runtime/sel_main_chrome.c
@@ -45,6 +45,9 @@ struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void) {
args->enable_debug_stub = 0;
args->create_memory_object_func = NULL;
args->validation_cache = NULL;
+#if NACL_WINDOWS
+ args->broker_duplicate_handle_func = NULL;
+#endif
return args;
}
@@ -121,6 +124,11 @@ void NaClChromeMainStart(struct NaClChromeMainArgs *args) {
/* Inject the validation caching interface, if it exists. */
nap->validation_cache = args->validation_cache;
+#if NACL_WINDOWS
+ if (args->broker_duplicate_handle_func != NULL)
+ NaClSetBrokerDuplicateHandleFunc(args->broker_duplicate_handle_func);
+#endif
+
NaClAppInitialDescriptorHookup(nap);
/*
« no previous file with comments | « src/trusted/service_runtime/sel_main_chrome.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698