diff options
Diffstat (limited to 'content/browser/worker_host/worker_process_host.cc')
-rw-r--r-- | content/browser/worker_host/worker_process_host.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/content/browser/worker_host/worker_process_host.cc b/content/browser/worker_host/worker_process_host.cc index f51aed6..6e47140 100644 --- a/content/browser/worker_host/worker_process_host.cc +++ b/content/browser/worker_host/worker_process_host.cc @@ -118,7 +118,13 @@ bool WorkerProcessHost::Init(int render_process_id) { if (!CreateChannel()) return false; - FilePath exe_path = GetChildPath(true); +#if defined(OS_LINUX) + int flags = CHILD_ALLOW_SELF; +#else + int flags = CHILD_NORMAL; +#endif + + FilePath exe_path = GetChildPath(flags); if (exe_path.empty()) return false; |