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

Unified Diff: content/browser/utility_process_host.cc

Issue 8849007: Add a mechanism to launch the utility process from the zygote on Linux. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased to ToT. Created 9 years 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 | « content/browser/utility_process_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/utility_process_host.cc
diff --git a/content/browser/utility_process_host.cc b/content/browser/utility_process_host.cc
index 998f8a511bc85aa6013aeee3b5b3a04c28e87227..f472d92557d966773e5c136ff6a7f2baaf9919fa 100644
--- a/content/browser/utility_process_host.cc
+++ b/content/browser/utility_process_host.cc
@@ -46,6 +46,7 @@ UtilityProcessHost::UtilityProcessHost(Client* client,
#else
child_flags_(ChildProcessHost::CHILD_NORMAL),
#endif
+ use_linux_zygote_(false),
started_(false) {
}
@@ -129,11 +130,17 @@ bool UtilityProcessHost::StartProcess() {
cmd_line->AppendSwitchPath(switches::kUtilityProcessAllowedDir, exposed_dir_);
#endif
+ bool use_zygote = false;
+
+#if defined(OS_LINUX)
+ use_zygote = !no_sandbox_ && use_linux_zygote_;
+#endif
+
Launch(
#if defined(OS_WIN)
exposed_dir_,
#elif defined(OS_POSIX)
- false,
+ use_zygote,
env_,
#endif
cmd_line);
« no previous file with comments | « content/browser/utility_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698