Index: chrome/renderer/renderer_main_platform_delegate_linux.cc |
diff --git a/chrome/renderer/renderer_main_platform_delegate_linux.cc b/chrome/renderer/renderer_main_platform_delegate_linux.cc |
index bce15dd964c79fbd54502a09d8c6c928dfeb4d94..98b0aca8d42ae39d0c3b0a3da11649d0801b9582 100644 |
--- a/chrome/renderer/renderer_main_platform_delegate_linux.cc |
+++ b/chrome/renderer/renderer_main_platform_delegate_linux.cc |
@@ -40,11 +40,8 @@ bool RendererMainPlatformDelegate::EnableSandbox() { |
// N.b. SupportsSeccompSandbox() returns a cached result, as we already |
// called it earlier in the zygote. Thus, it is OK for us to not pass in |
// a file descriptor for "/proc". |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableSeccompSandbox) && |
- SupportsSeccompSandbox(-1)) { |
+ if (switches::SeccompSandboxEnabled() && SupportsSeccompSandbox(-1)) |
StartSeccompSandbox(); |
- } |
#endif |
return true; |
} |