summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 17:21:07 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 17:21:07 +0000
commitc5866dca4988023e2a538be5c4feeeb52ae5fe80 (patch)
tree26a9b3b40ab5281e2ece44f6d32b1c09f6cb9b13 /chrome
parentcfd5c02d5a9b3bd87042b88cdff5d6b5c9e88f3d (diff)
downloadchromium_src-c5866dca4988023e2a538be5c4feeeb52ae5fe80.zip
chromium_src-c5866dca4988023e2a538be5c4feeeb52ae5fe80.tar.gz
chromium_src-c5866dca4988023e2a538be5c4feeeb52ae5fe80.tar.bz2
Add file_util::ReplaceFile and use it in ImportantFileWriter.
It has more strict semantics than file_util::Move. http://crbug.com/11585 Review URL: http://codereview.chromium.org/113207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/important_file_writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/important_file_writer.cc b/chrome/common/important_file_writer.cc
index 03e138c..86a7b7d 100644
--- a/chrome/common/important_file_writer.cc
+++ b/chrome/common/important_file_writer.cc
@@ -55,7 +55,7 @@ class WriteToDiskTask : public Task {
return;
}
- if (file_util::Move(tmp_file_path, path_)) {
+ if (file_util::ReplaceFile(tmp_file_path, path_)) {
LogSuccess();
return;
}