summaryrefslogtreecommitdiffstats
path: root/chrome/common/sandbox_mac.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 16:11:42 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 16:11:42 +0000
commit5db3b7e4a904820eb5e8bea6aa001421c8098505 (patch)
treef44a5c3d19f27a50b6f08828314569396a7f1489 /chrome/common/sandbox_mac.h
parentbb8a8ec083edead920f0db810b224bf43ff39717 (diff)
downloadchromium_src-5db3b7e4a904820eb5e8bea6aa001421c8098505.zip
chromium_src-5db3b7e4a904820eb5e8bea6aa001421c8098505.tar.gz
chromium_src-5db3b7e4a904820eb5e8bea6aa001421c8098505.tar.bz2
Mac: Use canonicalization rather than absolute paths for sandbox.
BUG=None TEST=Installing themes should continue to work. Review URL: http://codereview.chromium.org/2834044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/sandbox_mac.h')
-rw-r--r--chrome/common/sandbox_mac.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/sandbox_mac.h b/chrome/common/sandbox_mac.h
index 8065298..249eaa3 100644
--- a/chrome/common/sandbox_mac.h
+++ b/chrome/common/sandbox_mac.h
@@ -50,6 +50,11 @@ void SandboxWarmup();
bool EnableSandbox(SandboxProcessType sandbox_type,
const FilePath& allowed_dir);
+// Convert provided path into a "canonical" path matching what the Sandbox
+// expects i.e. one without symlinks.
+// This path is not necessarily unique e.g. in the face of hardlinks.
+void GetCanonicalSandboxPath(FilePath* path);
+
} // namespace sandbox
#endif // CHROME_COMMON_SANDBOX_MAC_H_