Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(968)

Unified Diff: base/file_util_mac.mm

Issue 18332014: Move Copy* into the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windows Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/file_util.cc ('k') | base/file_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « base/file_util.cc ('k') | base/file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698