summaryrefslogtreecommitdiffstats
path: root/content/browser/child_process_launcher.cc
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/child_process_launcher.cc
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/child_process_launcher.cc')
-rw-r--r--content/browser/child_process_launcher.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index a7927b3..ff17607 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -35,6 +35,7 @@
#include "base/memory/singleton.h"
#include "content/browser/renderer_host/render_sandbox_host_linux.h"
#include "content/browser/zygote_host/zygote_host_impl_linux.h"
+#include "content/common/child_process_sandbox_support_impl_linux.h"
#endif
#if defined(OS_POSIX)
@@ -256,7 +257,7 @@ class ChildProcessLauncher::Context
RenderSandboxHostLinux::GetInstance()->GetRendererSocket();
fds_to_map.push_back(std::make_pair(
sandbox_fd,
- kSandboxIPCChannel + base::GlobalDescriptors::kBaseDescriptor));
+ GetSandboxFD()));
}
#endif // defined(OS_MACOSX)