| Index: base/file_util_mac.mm
|
| diff --git a/base/file_util_mac.mm b/base/file_util_mac.mm
|
| index 33ddb421bb98ce58c1605a64b26bc6a440311bfe..9d9ac3d99b42da1ef98868a85cff6f270c935041 100644
|
| --- a/base/file_util_mac.mm
|
| +++ b/base/file_util_mac.mm
|
| @@ -13,6 +13,18 @@
|
| #include "base/strings/string_util.h"
|
| #include "base/threading/thread_restrictions.h"
|
|
|
| +namespace base {
|
| +namespace internal {
|
| +
|
| +bool CopyFileUnsafe(const FilePath& from_path, const FilePath& to_path) {
|
| + ThreadRestrictions::AssertIOAllowed();
|
| + return (copyfile(from_path.value().c_str(),
|
| + to_path.value().c_str(), NULL, COPYFILE_ALL) == 0);
|
| +}
|
| +
|
| +} // namespace internal
|
| +} // namepsace base
|
| +
|
| namespace file_util {
|
|
|
| bool GetTempDir(base::FilePath* path) {
|
| @@ -27,11 +39,4 @@ bool GetShmemTempDir(base::FilePath* path, bool executable) {
|
| return GetTempDir(path);
|
| }
|
|
|
| -bool CopyFileUnsafe(const base::FilePath& from_path,
|
| - const base::FilePath& to_path) {
|
| - base::ThreadRestrictions::AssertIOAllowed();
|
| - return (copyfile(from_path.value().c_str(),
|
| - to_path.value().c_str(), NULL, COPYFILE_ALL) == 0);
|
| -}
|
| -
|
| } // namespace
|
|
|