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

Unified Diff: sandbox/mac/xpc.cc

Issue 403193002: Fix the //sandbox/mac build when using a modern (10.7+) SDK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « sandbox/mac/xpc.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/xpc.cc
diff --git a/sandbox/mac/xpc.cc b/sandbox/mac/xpc.cc
index 670d8ad9e564169eb5e2b2d1c9bbfae770cdc583..b8d526bdad745c20a8bbcec34c24cdfd9830ba1b 100644
--- a/sandbox/mac/xpc.cc
+++ b/sandbox/mac/xpc.cc
@@ -7,6 +7,8 @@
namespace sandbox {
bool InitializeXPC() {
+#if !defined(MAC_OS_X_VERSION_10_7) || \
+ MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
std::vector<std::string> path_list;
path_list.push_back("/usr/lib/system/libxpc.dylib");
@@ -15,6 +17,9 @@ bool InitializeXPC() {
path_map[sandbox_mac::kModuleXpc_private_stubs] = path_list;
return sandbox_mac::InitializeStubs(path_map);
+#else
+ return true;
+#endif
}
} // namespace sandbox
« no previous file with comments | « sandbox/mac/xpc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698