Index: content/browser/zygote_host/zygote_host_impl_linux.cc |
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc |
index bb84e62ce3aaee5e072c9c1ad94bd7ef65e130ed..3629a841ec1149e2002a8259390f670387768f3b 100644 |
--- a/content/browser/zygote_host/zygote_host_impl_linux.cc |
+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc |
@@ -29,6 +29,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "base/time/time.h" |
#include "content/browser/renderer_host/render_sandbox_host_linux.h" |
+#include "content/common/child_process_sandbox_support_impl_linux.h" |
#include "content/common/zygote_commands_linux.h" |
#include "content/public/browser/content_browser_client.h" |
#include "content/public/common/content_switches.h" |
@@ -149,7 +150,7 @@ void ZygoteHostImpl::Init(const std::string& sandbox_cmd) { |
// Start up the sandbox host process and get the file descriptor for the |
// renderers to talk to it. |
const int sfd = RenderSandboxHostLinux::GetInstance()->GetRendererSocket(); |
- fds_to_map.push_back(std::make_pair(sfd, kZygoteRendererSocketFd)); |
+ fds_to_map.push_back(std::make_pair(sfd, GetSandboxFD())); |
int dummy_fd = -1; |
if (using_suid_sandbox_) { |