summaryrefslogtreecommitdiffstats
path: root/content/browser/zygote_host
diff options
context:
space:
mode:
authordongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 18:16:10 +0000
committerdongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 18:16:10 +0000
commita0c900e25048df7c14de26fb89e02a817b0c9a5e (patch)
treeb81f156df0eb95a64f7201e51d2a03214f68b24a /content/browser/zygote_host
parent0fc4cee8a4c0e075bfc76003abf711ec68ab1022 (diff)
downloadchromium_src-a0c900e25048df7c14de26fb89e02a817b0c9a5e.zip
chromium_src-a0c900e25048df7c14de26fb89e02a817b0c9a5e.tar.gz
chromium_src-a0c900e25048df7c14de26fb89e02a817b0c9a5e.tar.bz2
Define magic descriptors in one place.
Currently, zygote and sandbox ipc descriptors are defined in 3 places. This CL defines them in one place. Review URL: https://chromiumcodereview.appspot.com/23956010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222594 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/zygote_host')
-rw-r--r--content/browser/zygote_host/zygote_host_impl_linux.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc
index bb84e62..3629a84 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_) {