summaryrefslogtreecommitdiffstats
path: root/content/public/common/sandboxed_process_launcher_delegate.cc
blob: 6dc1933980db278b380de15ac958a343cbc513c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2014 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/public/common/sandboxed_process_launcher_delegate.h"

namespace content {

#if defined(OS_WIN)
  bool SandboxedProcessLauncherDelegate::ShouldLaunchElevated() {
    return false;
  }

  bool SandboxedProcessLauncherDelegate::ShouldSandbox() {
    return true;
  }

#elif(OS_POSIX)
  bool SandboxedProcessLauncherDelegate::ShouldUseZygote() {
    return false;
  }

  base::EnvironmentMap SandboxedProcessLauncherDelegate::GetEnvironment() {
    return base::EnvironmentMap();
  }
#endif
}  // namespace content