diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-26 01:40:12 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-26 01:40:12 +0000 |
commit | b33f1d943fd420857d9c5988ce1f4598f9a8765a (patch) | |
tree | 8bb2ca934346bb21198ca95c5294d15643181662 /base/file_util.h | |
parent | c06f3007c6f5f565501d33343de89c229f356e7a (diff) | |
download | chromium_src-b33f1d943fd420857d9c5988ce1f4598f9a8765a.zip chromium_src-b33f1d943fd420857d9c5988ce1f4598f9a8765a.tar.gz chromium_src-b33f1d943fd420857d9c5988ce1f4598f9a8765a.tar.bz2 |
file_util: Convert the wstring version of IsDirectoryEmpty to FilePath.
BUG=24672
TEST=compiles
Review URL: http://codereview.chromium.org/2153002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/file_util.h b/base/file_util.h index 16f18f1..414f775 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -212,16 +212,16 @@ bool TaskbarPinShortcutLink(const wchar_t* shortcut); // already be pinned to the taskbar. bool TaskbarUnpinShortcutLink(const wchar_t* shortcut); -// Return true if the given directory is empty -bool IsDirectoryEmpty(const std::wstring& dir_path); - // Copy from_path to to_path recursively and then delete from_path recursively. // Returns true if all operations succeed. // This function simulates Move(), but unlike Move() it works across volumes. // This fuction is not transactional. bool CopyAndDeleteDirectory(const FilePath& from_path, const FilePath& to_path); -#endif +#endif // defined(OS_WIN) + +// Return true if the given directory is empty +bool IsDirectoryEmpty(const FilePath& dir_path); // Get the temporary directory provided by the system. bool GetTempDir(FilePath* path); |