Index: chrome/app/chrome_main.cc |
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc |
index bc8b594014fa5f6c5c954d1c1bfc66a6251db04e..f47a28bc91229dbd668e9ca21d064906a007006a 100644 |
--- a/chrome/app/chrome_main.cc |
+++ b/chrome/app/chrome_main.cc |
@@ -47,6 +47,11 @@ |
#include "ui/base/ui_base_paths.h" |
#include "ui/base/ui_base_switches.h" |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+#include "chrome/common/nacl_fork_delegate_linux.h" |
+#include "content/common/zygote_fork_delegate_linux.h" |
+#endif |
+ |
#if defined(OS_WIN) |
#include <algorithm> |
#include <malloc.h> |
@@ -112,7 +117,10 @@ extern int WorkerMain(const MainFunctionParams&); |
extern int NaClMain(const MainFunctionParams&); |
extern int UtilityMain(const MainFunctionParams&); |
extern int ProfileImportMain(const MainFunctionParams&); |
-extern int ZygoteMain(const MainFunctionParams&); |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+extern int ZygoteMain(const MainFunctionParams&, |
+ ZygoteForkDelegate* forkdelegate); |
+#endif |
#if defined(_WIN64) |
extern int NaClBrokerMain(const MainFunctionParams&); |
#endif |
@@ -450,7 +458,7 @@ int RunZygote(const MainFunctionParams& main_function_params) { |
media::InitializeMediaLibrary(media_path); |
// This function call can return multiple times, once per fork(). |
- if (!ZygoteMain(main_function_params)) |
+ if (!ZygoteMain(main_function_params, new NaClForkDelegate())) |
return 1; |
// Zygote::HandleForkRequest may have reallocated the command |