summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_sandbox_support_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/renderer_sandbox_support_linux.cc')
-rw-r--r--chrome/renderer/renderer_sandbox_support_linux.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/renderer/renderer_sandbox_support_linux.cc b/chrome/renderer/renderer_sandbox_support_linux.cc
index 29fe183..a08fff1 100644
--- a/chrome/renderer/renderer_sandbox_support_linux.cc
+++ b/chrome/renderer/renderer_sandbox_support_linux.cc
@@ -4,8 +4,10 @@
#include "chrome/renderer/renderer_sandbox_support_linux.h"
+#include "base/global_descriptors_posix.h"
#include "base/pickle.h"
#include "base/unix_domain_socket_posix.h"
+#include "chrome/common/chrome_descriptors.h"
#include "chrome/common/sandbox_methods_linux.h"
namespace renderer_sandbox_support {
@@ -18,8 +20,9 @@ std::string getFontFamilyForCharacters(const uint16_t* utf16, size_t num_utf16)
request.WriteUInt32(utf16[i]);
uint8_t buf[512];
- static const int kMagicSandboxFD = 4;
- const ssize_t n = base::SendRecvMsg(kMagicSandboxFD, buf, sizeof(buf), NULL,
+ const int sandbox_fd =
+ kSandboxIPCChannel + base::GlobalDescriptors::kBaseDescriptor;
+ const ssize_t n = base::SendRecvMsg(sandbox_fd, buf, sizeof(buf), NULL,
request);
std::string family_name;