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

Unified Diff: chrome/app/chrome_main.cc

Issue 7395024: For Linux, create a ZygoteForkDelegate that uses the nacl_helper executable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A zygote fork delegate for Native Client Created 9 years, 5 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 | « no previous file | chrome/common/nacl_fork_delegate_linux.h » ('j') | chrome/common/nacl_types.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main.cc
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
index 3b45594d7a2c71e873f40842133e5661d4ed767b..37725c8404a3e7bb92ef5cc03196b21c3ee54c2b 100644
--- a/chrome/app/chrome_main.cc
+++ b/chrome/app/chrome_main.cc
@@ -77,6 +77,7 @@
#endif
#if defined(OS_POSIX) && !defined(OS_MACOSX)
+#include "chrome/common/nacl_fork_delegate_linux.h"
#include "content/common/zygote_fork_delegate_linux.h"
#endif
@@ -459,7 +460,11 @@ 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, NULL))
+ NaClForkDelegate* nacldelegate = new NaClForkDelegate();
agl 2011/07/18 21:19:35 s/nacldelegate/nacl_delegate/
Brad Chen 2011/07/18 22:40:29 Done.
+ int rval = ZygoteMain(main_function_params, nacldelegate);
+ if (nacldelegate)
+ free(nacldelegate);
agl 2011/07/18 21:19:35 |delete nacldelegate| and no need for the if(), de
Brad Chen 2011/07/18 22:40:29 Done.
+ if (!rval)
return 1;
// Zygote::HandleForkRequest may have reallocated the command
« no previous file with comments | « no previous file | chrome/common/nacl_fork_delegate_linux.h » ('j') | chrome/common/nacl_types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698