summaryrefslogtreecommitdiffstats
path: root/base/file_util_win.cc
diff options
context:
space:
mode:
authorahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-04 00:00:54 +0000
committerahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-04 00:00:54 +0000
commit33c6d3f12211d716768ab195be90d598cd2bd364 (patch)
tree58af1d1690f995e8e4bf0e03fab379b9940f9946 /base/file_util_win.cc
parentdeac4290c3fd825f6f3000e89d67d4ac8a190371 (diff)
downloadchromium_src-33c6d3f12211d716768ab195be90d598cd2bd364.zip
chromium_src-33c6d3f12211d716768ab195be90d598cd2bd364.tar.gz
chromium_src-33c6d3f12211d716768ab195be90d598cd2bd364.tar.bz2
Make BaseFile member functions return net::Error's.
Moving towards giving the user feedback when a file system error occurs during a download. Split from CL 7134019. rdsmith: downloads phajdan.jr: downloads, base wtc: net brettw: base BUG=None TEST=None Review URL: http://codereview.chromium.org/7778003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99579 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r--base/file_util_win.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index fab91f6..19e15fc 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -795,30 +795,6 @@ int WriteFile(const FilePath& filename, const char* data, int size) {
return -1;
}
-bool RenameFileAndResetSecurityDescriptor(const FilePath& source_file_path,
- const FilePath& target_file_path) {
- base::ThreadRestrictions::AssertIOAllowed();
-
- // The parameters to SHFileOperation must be terminated with 2 NULL chars.
- std::wstring source = source_file_path.value();
- std::wstring target = target_file_path.value();
-
- source.append(1, L'\0');
- target.append(1, L'\0');
-
- SHFILEOPSTRUCT move_info = {0};
- move_info.wFunc = FO_MOVE;
- move_info.pFrom = source.c_str();
- move_info.pTo = target.c_str();
- move_info.fFlags = FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI |
- FOF_NOCONFIRMMKDIR | FOF_NOCOPYSECURITYATTRIBS;
-
- if (0 != SHFileOperation(&move_info))
- return false;
-
- return true;
-}
-
// Gets the current working directory for the process.
bool GetCurrentDirectory(FilePath* dir) {
base::ThreadRestrictions::AssertIOAllowed();