Chromium Code Reviews

Unified Diff: chrome/common/sandbox_policy.cc

Issue 5991003: Added group policy for disabling all client-side 3D APIs in Chromium... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/common/sandbox_policy.cc
===================================================================
--- chrome/common/sandbox_policy.cc (revision 69586)
+++ chrome/common/sandbox_policy.cc (working copy)
@@ -546,7 +546,8 @@
in_sandbox = false;
}
#endif
- if (!browser_command_line.HasSwitch(switches::kDisableExperimentalWebGL) &&
+ if (!browser_command_line.HasSwitch(switches::kDisable3DAPIs) &&
+ !browser_command_line.HasSwitch(switches::kDisableExperimentalWebGL) &&
browser_command_line.HasSwitch(switches::kInProcessWebGL)) {
// In process WebGL won't work if the sandbox is enabled.
in_sandbox = false;

Powered by Google App Engine