diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 16:11:42 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 16:11:42 +0000 |
commit | 5db3b7e4a904820eb5e8bea6aa001421c8098505 (patch) | |
tree | f44a5c3d19f27a50b6f08828314569396a7f1489 /chrome/common/sandbox_mac.h | |
parent | bb8a8ec083edead920f0db810b224bf43ff39717 (diff) | |
download | chromium_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.h | 5 |
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_ |