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

Unified Diff: content/common/sandbox_init_linux.cc

Issue 10388063: Disable Chrome OS seccomp filter GPU sandbox. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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 | « no previous file | content/gpu/gpu_main.cc » ('j') | content/gpu/gpu_main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_init_linux.cc
diff --git a/content/common/sandbox_init_linux.cc b/content/common/sandbox_init_linux.cc
index 99f631b18c434587a5f24f561168ebe97b41d702..7d8b66750cd89cca6fb1c52ea5f8afa929a654b5 100644
--- a/content/common/sandbox_init_linux.cc
+++ b/content/common/sandbox_init_linux.cc
@@ -333,9 +333,6 @@ void InitializeSandbox() {
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
- if (process_type == switches::kGpuProcess &&
- command_line.HasSwitch(switches::kDisableGpuSandbox))
- return;
jln (very slow on Chromium) 2012/05/10 03:16:39 What about making a EnableGpuSandbox switch and ha
Jorge Lucangeli Obes 2012/05/10 03:38:34 Agreed, having the change in only one place makes
if (!CanUseSeccompFilters())
return;
@@ -345,9 +342,7 @@ void InitializeSandbox() {
std::vector<struct sock_filter> program;
EmitPreamble(&program);
- if (process_type == switches::kGpuProcess) {
- ApplyGPUPolicy(&program);
- } else if (process_type == switches::kPpapiPluginProcess) {
+ if (process_type == switches::kPpapiPluginProcess) {
ApplyFlashPolicy(&program);
} else {
NOTREACHED();
« no previous file with comments | « no previous file | content/gpu/gpu_main.cc » ('j') | content/gpu/gpu_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698