summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authorjeremya@chromium.org <jeremya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-04 09:05:21 +0000
committerjeremya@chromium.org <jeremya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-04 09:05:21 +0000
commit992c73e13b8fc445aa18a6f215947bcc9d7a1c89 (patch)
tree2287c4b4278c4e0a4cbf9385c87536a90c0bf9f7 /base/file_util.h
parente676f8f0050863331707210c9457162e03563ce3 (diff)
downloadchromium_src-992c73e13b8fc445aa18a6f215947bcc9d7a1c89.zip
chromium_src-992c73e13b8fc445aa18a6f215947bcc9d7a1c89.tar.gz
chromium_src-992c73e13b8fc445aa18a6f215947bcc9d7a1c89.tar.bz2
When creating app shortcuts on the mac, suffix them with (1) if the shortcut already existed.
BUG=180744 Review URL: https://chromiumcodereview.appspot.com/13375019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h
index 9ba5e41..00be5c9 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -374,6 +374,13 @@ BASE_EXPORT int GetUniquePathNumber(const base::FilePath& path,
const base::FilePath::StringType& suffix);
#if defined(OS_POSIX)
+// Creates a directory with a guaranteed unique name based on |path|, returning
+// the pathname if successful, or an empty path if there was an error creating
+// the directory. Does not create parent directories.
+BASE_EXPORT base::FilePath MakeUniqueDirectory(const base::FilePath& path);
+#endif
+
+#if defined(OS_POSIX)
// Test that |path| can only be changed by a given user and members of
// a given set of groups.
// Specifically, test that all parts of |path| under (and including) |base|: