diff options
-rw-r--r-- | chromium/services/service_manager/zygote/host/zygote_communication_linux.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/services/service_manager/zygote/host/zygote_communication_linux.cc b/chromium/services/service_manager/zygote/host/zygote_communication_linux.cc index 9e6a5fa3d22..5a0bb5f59a5 100644 --- a/chromium/services/service_manager/zygote/host/zygote_communication_linux.cc +++ b/chromium/services/service_manager/zygote/host/zygote_communication_linux.cc @@ -17,6 +17,7 @@ #include "base/posix/eintr_wrapper.h" #include "base/posix/unix_domain_socket.h" #include "base/stl_util.h" +#include "content/public/common/child_process_host.h" #include "services/service_manager/embedder/result_codes.h" #include "services/service_manager/embedder/switches.h" #include "services/service_manager/sandbox/switches.h" @@ -224,8 +225,8 @@ void ZygoteCommunication::Init( base::OnceCallback<pid_t(base::CommandLine*, base::ScopedFD*)> launcher) { CHECK(!init_); - base::FilePath chrome_path; - CHECK(base::PathService::Get(base::FILE_EXE, &chrome_path)); + base::FilePath chrome_path = content::ChildProcessHost::GetChildPath( + content::ChildProcessHost::CHILD_NORMAL); base::CommandLine cmd_line(chrome_path); cmd_line.AppendSwitchASCII(switches::kProcessType, switches::kZygoteProcess); |