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

Unified Diff: content/browser/gpu.sb

Issue 1186233004: Refactor OS X sandbox processing and audit sandbox files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move struct to anon namespace and use static_cast<> Created 5 years, 5 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/common/common.sb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu.sb
diff --git a/content/browser/gpu.sb b/content/browser/gpu.sb
index b3d17d5182b54f010d2d0ddbf99fa6e10d5f34e8..454261d0c3b78b904ab71310bc41f088da5f0af7 100644
--- a/content/browser/gpu.sb
+++ b/content/browser/gpu.sb
@@ -12,13 +12,14 @@
(allow file-read-metadata (literal "/"))
; Needed for WebGL on OS X 10.7 - crbug.com/75343
-;10.7_OR_ABOVE (allow iokit-open
-;10.7_OR_ABOVE (iokit-connection "IOAccelerator")
-;10.7_OR_ABOVE (iokit-user-client-class "IOAccelerationUserClient")
-;10.7_OR_ABOVE (iokit-user-client-class "IOFramebufferSharedUserClient")
-;10.7_OR_ABOVE (iokit-user-client-class "AppleGraphicsControlClient")
-;10.7_OR_ABOVE (iokit-user-client-class "AGPMClient")
-;10.7_OR_ABOVE (iokit-user-client-class "IOHIDParamUserClient")
-;10.7_OR_ABOVE (iokit-user-client-class "RootDomainUserClient")
-;10.7_OR_ABOVE (iokit-user-client-class "IOSurfaceRootUserClient")
-;10.7_OR_ABOVE (iokit-user-client-class "IOSurfaceSendRight"))
+(if (param-true? lion-or-later)
+ (allow iokit-open
+ (iokit-connection "IOAccelerator")
+ (iokit-user-client-class "IOAccelerationUserClient")
+ (iokit-user-client-class "IOFramebufferSharedUserClient")
+ (iokit-user-client-class "AppleGraphicsControlClient")
+ (iokit-user-client-class "AGPMClient")
+ (iokit-user-client-class "IOHIDParamUserClient")
+ (iokit-user-client-class "RootDomainUserClient")
+ (iokit-user-client-class "IOSurfaceRootUserClient")
+ (iokit-user-client-class "IOSurfaceSendRight")))
« no previous file with comments | « no previous file | content/common/common.sb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698