Index: chrome/browser/zygote_host_linux.cc |
diff --git a/chrome/browser/zygote_host_linux.cc b/chrome/browser/zygote_host_linux.cc |
index 96506bb613f4819c17c324e17d23139b0d762bfc..cdeda420a9fbd5d0527e491f30cd86af0f8ece85 100644 |
--- a/chrome/browser/zygote_host_linux.cc |
+++ b/chrome/browser/zygote_host_linux.cc |
@@ -103,9 +103,13 @@ void ZygoteHost::Init(const std::string& sandbox_cmd) { |
browser_command_line.GetSwitchValueASCII( |
switches::kUserDataDir)); |
} |
- if (browser_command_line.HasSwitch(switches::kEnableSeccompSandbox)) { |
+#if defined(USE_SECCOMP_SANDBOX) |
+ if (browser_command_line.HasSwitch(switches::kDisableSeccompSandbox)) |
+ cmd_line.AppendSwitch(switches::kDisableSeccompSandbox); |
+#else |
+ if (browser_command_line.HasSwitch(switches::kEnableSeccompSandbox)) |
cmd_line.AppendSwitch(switches::kEnableSeccompSandbox); |
- } |
+#endif |
sandbox_binary_ = sandbox_cmd.c_str(); |
struct stat st; |