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

Unified Diff: content/common/sandbox_mac.mm

Issue 1280443003: Allow OpenCL to open libraries in /usr/lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
Index: content/common/sandbox_mac.mm
diff --git a/content/common/sandbox_mac.mm b/content/common/sandbox_mac.mm
index 4498320b1641e14315ff63002768e669da57ad38..4dc7d9413edb40d07adb8a2d9c6b2be9149e1287 100644
--- a/content/common/sandbox_mac.mm
+++ b/content/common/sandbox_mac.mm
@@ -528,6 +528,9 @@ bool Sandbox::EnableSandbox(int sandbox_type,
bool lion_or_later = base::mac::IsOSLionOrLater();
if (!compiler.InsertBooleanParam("LION_OR_LATER", lion_or_later))
return false;
+ bool elcap_or_later = base::mac::IsOSElCapitanOrLater();
+ if (!compiler.InsertBooleanParam("ELCAP_OR_LATER", elcap_or_later))
+ return false;
#if defined(COMPONENT_BUILD)
// dlopen() fails without file-read-metadata access if the executable image

Powered by Google App Engine
This is Rietveld 408576698