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

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

Issue 209423004: Add NaClChromeMainInitForNonSfi (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 6 years, 9 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/nacl_all_modules.h ('k') | src/trusted/service_runtime/sel_main_chrome.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/nacl_all_modules.c
diff --git a/src/trusted/service_runtime/nacl_all_modules.c b/src/trusted/service_runtime/nacl_all_modules.c
index 1617229662e75218dff8d08f69579b45946e4ff1..0b1b97ac7e947106cf34a0717dd82df6bb2512c4 100644
--- a/src/trusted/service_runtime/nacl_all_modules.c
+++ b/src/trusted/service_runtime/nacl_all_modules.c
@@ -17,7 +17,7 @@
#include "native_client/src/trusted/service_runtime/nacl_tls.h"
#include "native_client/src/trusted/service_runtime/nacl_stack_safety.h"
-void NaClAllModulesInit(void) {
+void NaClAllModulesInit(void) {
NaClNrdAllModulesInit();
NaClFaultInjectionModuleInit();
NaClGlobalModuleInit(); /* various global variables */
@@ -27,6 +27,11 @@ void NaClAllModulesInit(void) {
NaClThreadNiceInit();
}
+void NaClAllModulesInitForNonSfi(void) {
Mark Seaborn 2014/03/28 14:09:45 Just call whatever Init functions you need directl
hamaji 2014/04/01 07:10:38 I remembered a reason we need to call NaClChromeMa
hamaji 2014/04/01 07:59:32 I guess we don't need to call NaClChromeMainArgsCr
+ NaClNrdAllModulesInit();
+ NaClGlobalModuleInit(); /* various global variables */
Mark Seaborn 2014/03/28 14:09:45 I doubt you need this one.
hamaji 2014/04/01 07:10:38 Removed.
hamaji 2014/04/01 07:59:32 This comment was just a mistake...
+ NaClSrpcModuleInit();
+}
void NaClAllModulesFini(void) {
NaClTlsFini();
@@ -34,3 +39,9 @@ void NaClAllModulesFini(void) {
NaClGlobalModuleFini();
NaClNrdAllModulesFini();
}
+
+void NaClAllModulesFiniForNonSfi(void) {
+ NaClSrpcModuleFini();
+ NaClGlobalModuleFini();
+ NaClNrdAllModulesFini();
+}
« no previous file with comments | « src/trusted/service_runtime/nacl_all_modules.h ('k') | src/trusted/service_runtime/sel_main_chrome.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698