Index: base/file_util.cc |
diff --git a/base/file_util.cc b/base/file_util.cc |
index e76c5c2fd9afc1958c991382e55e727bd0552726..58dbd795d34f54b24b7e89251b94c81d1d8e5ba5 100644 |
--- a/base/file_util.cc |
+++ b/base/file_util.cc |
@@ -63,6 +63,11 @@ bool Move(const FilePath& from_path, const FilePath& to_path) { |
return MoveUnsafe(from_path, to_path); |
} |
+bool ReplaceFile(const base::FilePath& from_path, |
+ const base::FilePath& to_path) { |
+ return ReplaceFileAndGetError(from_path, to_path, NULL); |
+} |
+ |
bool CopyFile(const FilePath& from_path, const FilePath& to_path) { |
if (from_path.ReferencesParent() || to_path.ReferencesParent()) |
return false; |