Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1904)

Unified Diff: content/common/child_process_sandbox_support_impl_shm_linux.cc

Issue 2679323006: Remove content/browser dependency on WebFontRenderStyle. (Closed)
Patch Set: merge Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/child_process_sandbox_support_impl_shm_linux.cc
diff --git a/content/common/child_process_sandbox_support_impl_shm_linux.cc b/content/common/child_process_sandbox_support_impl_shm_linux.cc
deleted file mode 100644
index eb4f67dac564c4aa9c146e565e4747cb9c730f78..0000000000000000000000000000000000000000
--- a/content/common/child_process_sandbox_support_impl_shm_linux.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/common/child_process_sandbox_support_impl_linux.h"
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include "base/pickle.h"
-#include "base/posix/unix_domain_socket_linux.h"
-#include "content/common/sandbox_linux/sandbox_linux.h"
-
-namespace content {
-
-int MakeSharedMemorySegmentViaIPC(size_t length, bool executable) {
- base::Pickle request;
- request.WriteInt(LinuxSandbox::METHOD_MAKE_SHARED_MEMORY_SEGMENT);
- request.WriteUInt32(length);
- request.WriteBool(executable);
- uint8_t reply_buf[10];
- int result_fd;
- ssize_t result = base::UnixDomainSocket::SendRecvMsg(
- GetSandboxFD(), reply_buf, sizeof(reply_buf), &result_fd, request);
- if (result == -1)
- return -1;
- return result_fd;
-}
-
-} // namespace content
« no previous file with comments | « content/common/child_process_sandbox_support_impl_linux.cc ('k') | content/common/common_sandbox_support_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698