diff options
author | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 15:23:24 +0000 |
---|---|---|
committer | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 15:23:24 +0000 |
commit | db68114e6efe13934a19a23e5bc4ddb76f5d9e08 (patch) | |
tree | 34addf483701db1f923ba82fb6804cdea70b378b /chrome/renderer | |
parent | b693346d9bfa35778a66aed051800cb5ea5dedef (diff) | |
download | chromium_src-db68114e6efe13934a19a23e5bc4ddb76f5d9e08.zip chromium_src-db68114e6efe13934a19a23e5bc4ddb76f5d9e08.tar.gz chromium_src-db68114e6efe13934a19a23e5bc4ddb76f5d9e08.tar.bz2 |
NaCl: Remove second variant of MakeSharedMemorySegmentViaIPC()
This was needed because the native_client tree referred to this
function directly and #included renderer_sandbox_support_linux.h, but
this direct reference has now been removed.
BUG=http://code.google.com/p/nativeclient/issues/detail?id=469
TEST=NaCl's test_runner.html
Review URL: http://codereview.chromium.org/4810002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_process_impl.cc | 2 | ||||
-rw-r--r-- | chrome/renderer/renderer_sandbox_support_linux.cc | 6 | ||||
-rw-r--r-- | chrome/renderer/renderer_sandbox_support_linux.h | 6 |
3 files changed, 3 insertions, 11 deletions
diff --git a/chrome/renderer/render_process_impl.cc b/chrome/renderer/render_process_impl.cc index 261ba57..a28f823 100644 --- a/chrome/renderer/render_process_impl.cc +++ b/chrome/renderer/render_process_impl.cc @@ -175,7 +175,7 @@ RenderProcessImpl::RenderProcessImpl() RegisterInternalNaClPlugin(funcs); #if defined(OS_LINUX) nacl::SetCreateMemoryObjectFunc( - renderer_sandbox_support::MakeSharedMemorySegmentViaIPCExecutable); + renderer_sandbox_support::MakeSharedMemorySegmentViaIPC); #endif } #endif diff --git a/chrome/renderer/renderer_sandbox_support_linux.cc b/chrome/renderer/renderer_sandbox_support_linux.cc index 283afe6..29fae48 100644 --- a/chrome/renderer/renderer_sandbox_support_linux.cc +++ b/chrome/renderer/renderer_sandbox_support_linux.cc @@ -78,7 +78,7 @@ void getRenderStyleForStrike(const char* family, int sizeAndStyle, } } -int MakeSharedMemorySegmentViaIPC(size_t length) { +int MakeSharedMemorySegmentViaIPC(size_t length, bool executable) { Pickle request; request.WriteInt(LinuxSandbox::METHOD_MAKE_SHARED_MEMORY_SEGMENT); request.WriteUInt32(length); @@ -92,10 +92,6 @@ int MakeSharedMemorySegmentViaIPC(size_t length) { return result_fd; } -int MakeSharedMemorySegmentViaIPCExecutable(size_t length, bool executable) { - return MakeSharedMemorySegmentViaIPC(length); -} - int MatchFontWithFallback(const std::string& face, bool bold, bool italic, int charset) { Pickle request; diff --git a/chrome/renderer/renderer_sandbox_support_linux.h b/chrome/renderer/renderer_sandbox_support_linux.h index 1b71f38..6059414 100644 --- a/chrome/renderer/renderer_sandbox_support_linux.h +++ b/chrome/renderer/renderer_sandbox_support_linux.h @@ -29,13 +29,9 @@ void getRenderStyleForStrike(const char* family, int sizeAndStyle, WebKit::WebFontRenderStyle* out); // Returns a file descriptor for a shared memory segment. -// TODO(mseaborn): Remove this when the call site is gone from native_client. -int MakeSharedMemorySegmentViaIPC(size_t length); - -// Returns a file descriptor for a shared memory segment. // The second argument is ignored because SHM segments are always // mappable with PROT_EXEC on Linux. -int MakeSharedMemorySegmentViaIPCExecutable(size_t length, bool executable); +int MakeSharedMemorySegmentViaIPC(size_t length, bool executable); // Return a read-only file descriptor to the font which best matches the given // properties or -1 on failure. |