diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 13:15:24 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 13:15:24 +0000 |
commit | 1c5fdc4aa3b54cbc3a103e26af918188afbe8b66 (patch) | |
tree | 1523fd698a41ac8a4e357850f050338341d33cfe /chrome/common/sandbox_init_wrapper_win.cc | |
parent | 824083c52c5689198290e24938793ce4ccc6e683 (diff) | |
download | chromium_src-1c5fdc4aa3b54cbc3a103e26af918188afbe8b66.zip chromium_src-1c5fdc4aa3b54cbc3a103e26af918188afbe8b66.tar.gz chromium_src-1c5fdc4aa3b54cbc3a103e26af918188afbe8b66.tar.bz2 |
TBR:mark
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31090 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/sandbox_init_wrapper_win.cc')
-rw-r--r-- | chrome/common/sandbox_init_wrapper_win.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/chrome/common/sandbox_init_wrapper_win.cc b/chrome/common/sandbox_init_wrapper_win.cc deleted file mode 100644 index fe5c6df..0000000 --- a/chrome/common/sandbox_init_wrapper_win.cc +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2009 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 "chrome/common/sandbox_init_wrapper.h" - -#include "base/command_line.h" -#include "chrome/common/chrome_switches.h" - -void SandboxInitWrapper::SetServices(sandbox::SandboxInterfaceInfo* info) { - if (info) { - broker_services_ = info->broker_services; - target_services_ = info->target_services; - } -} - -bool SandboxInitWrapper::InitializeSandbox(const CommandLine& command_line, - const std::string& process_type) { - if (command_line.HasSwitch(switches::kNoSandbox)) - return true; - if ((process_type == switches::kRendererProcess) || - (process_type == switches::kWorkerProcess) || - (process_type == switches::kNaClProcess) || - (process_type == switches::kUtilityProcess) || - (process_type == switches::kPluginProcess && - command_line.HasSwitch(switches::kSafePlugins))) { - if (!target_services_) - return false; - target_services_->Init(); - } - return true; -} |