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

Unified Diff: chrome/utility/safe_browsing/mac/crdmg.cc

Issue 2325783002: Split parts of //chrome/utility's BUILD.gn into //chrome/utility/safe_browsing/mac. (Closed)
Patch Set: Fix gn --check Created 4 years, 3 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 | « chrome/utility/safe_browsing/mac/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/safe_browsing/mac/crdmg.cc
diff --git a/chrome/utility/safe_browsing/mac/crdmg.cc b/chrome/utility/safe_browsing/mac/crdmg.cc
index 18a5ea1535de467b5b70d4971d046641e9ebcc83..8dc0bc9d3cf440aa3348603fa3f090acb6cb056b 100644
--- a/chrome/utility/safe_browsing/mac/crdmg.cc
+++ b/chrome/utility/safe_browsing/mac/crdmg.cc
@@ -25,6 +25,14 @@
#include "chrome/utility/safe_browsing/mac/read_stream.h"
#include "chrome/utility/safe_browsing/mac/udif.h"
+// This executable only works on 10.10+, so unconditionally use these functions
+// to make sandboxing easier.
+extern "C" {
+int mkdirat(int, const char *, mode_t);
+int openat(int, const char *, int, ...);
+int unlinkat(int, const char *, int);
+}
+
namespace {
// SafeDMG (crdmg) is a utility that can perform a list or extract operation
« no previous file with comments | « chrome/utility/safe_browsing/mac/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698