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

Unified Diff: content/public/common/sandboxed_process_launcher_delegate.cc

Issue 177863002: Refactor configuration of sandboxes - first steps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remaining nits and rebase Created 6 years, 9 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
« no previous file with comments | « content/public/common/sandboxed_process_launcher_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/sandboxed_process_launcher_delegate.cc
diff --git a/content/public/common/sandboxed_process_launcher_delegate.cc b/content/public/common/sandboxed_process_launcher_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cba0f73135e4f787761f0d6f53b6145e9971d1f7
--- /dev/null
+++ b/content/public/common/sandboxed_process_launcher_delegate.cc
@@ -0,0 +1,27 @@
+// 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/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
« no previous file with comments | « content/public/common/sandboxed_process_launcher_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698