From a25e36ecc653035fb06dc5a69b86eaceb18db6dd Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Thu, 4 Jun 2009 00:29:15 +0000 Subject: Revert r17575 and r17576. They are causing layout test errors. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17577 0039d316-1c4b-4281-b951-d872f2087c98 --- .../renderer_main_platform_delegate_linux.cc | 45 ++-------------------- 1 file changed, 3 insertions(+), 42 deletions(-) (limited to 'chrome/renderer') diff --git a/chrome/renderer/renderer_main_platform_delegate_linux.cc b/chrome/renderer/renderer_main_platform_delegate_linux.cc index e997bc9..6502129 100644 --- a/chrome/renderer/renderer_main_platform_delegate_linux.cc +++ b/chrome/renderer/renderer_main_platform_delegate_linux.cc @@ -4,10 +4,7 @@ #include "chrome/renderer/renderer_main_platform_delegate.h" -#include - #include "base/debug_util.h" -#include "base/eintr_wrapper.h" // This is a no op class because we do not have a sandbox on linux. @@ -19,9 +16,6 @@ RendererMainPlatformDelegate::RendererMainPlatformDelegate( RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { } -extern void SkiaFontConfigUseIPCImplementation(int fd); -extern void SkiaFontConfigUseDirectImplementation(); - void RendererMainPlatformDelegate::PlatformInitialize() { } @@ -29,51 +23,18 @@ void RendererMainPlatformDelegate::PlatformUninitialize() { } bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) { - // Our sandbox support is in the very early stages + // We have no sandbox. // http://code.google.com/p/chromium/issues/detail?id=8081 return true; } bool RendererMainPlatformDelegate::EnableSandbox() { - // Our sandbox support is in the very early stages + // We have no sandbox. // http://code.google.com/p/chromium/issues/detail?id=8081 - - const char* const sandbox_fd_string = getenv("SBX_D"); - if (sandbox_fd_string) { - // The SUID sandbox sets this environment variable to a file descriptor - // over which we can signal that we have completed our startup and can be - // chrooted. - - char* endptr; - const long fd_long = strtol(sandbox_fd_string, &endptr, 10); - if (!*sandbox_fd_string || *endptr || fd_long < 0 || fd_long > INT_MAX) - return false; - const int fd = fd_long; - - static const char kChrootMe = 'C'; - static const char kChrootMeSuccess = 'O'; - - if (HANDLE_EINTR(write(fd, &kChrootMe, 1)) != 1) - return false; - - char reply; - if (HANDLE_EINTR(read(fd, &reply, 1)) != 1) - return false; - if (reply != kChrootMeSuccess) - return false; - if (chdir("/") == -1) - return false; - - static const int kMagicSandboxIPCDescriptor = 5; - SkiaFontConfigUseIPCImplementation(kMagicSandboxIPCDescriptor); - } else { - SkiaFontConfigUseDirectImplementation(); - } - return true; } void RendererMainPlatformDelegate::RunSandboxTests() { - // Our sandbox support is in the very early stages + // We have no sandbox. // http://code.google.com/p/chromium/issues/detail?id=8081 } -- cgit v1.1