diff options
Diffstat (limited to 'chrome/browser/child_process_launcher.cc')
-rw-r--r-- | chrome/browser/child_process_launcher.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/child_process_launcher.cc b/chrome/browser/child_process_launcher.cc index 1ab66c6..be2b801 100644 --- a/chrome/browser/child_process_launcher.cc +++ b/chrome/browser/child_process_launcher.cc @@ -23,6 +23,10 @@ #include "chrome/browser/renderer_host/render_sandbox_host_linux.h" #endif +#if defined(OS_MACOSX) +#include "chrome/browser/mach_broker_mac.h" +#endif + #if defined(OS_POSIX) #include "base/global_descriptors_posix.h" #endif @@ -163,6 +167,14 @@ class ChildProcessLauncher::Context // Actually launch the app. if (!base::LaunchApp(cmd_line->argv(), env, fds_to_map, false, &handle)) handle = base::kNullProcessHandle; + + +#if defined(OS_MACOSX) +task_t foobar(pid_t pid); + MachBroker::instance()->RegisterPid( + handle, + MachBroker::MachInfo().SetTask(foobar(handle))); +#endif } #endif |