| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/files/file_util.h" | 5 #include "base/files/file_util.h" |
| 6 | 6 |
| 7 #include <copyfile.h> |
| 7 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 8 #include <copyfile.h> | |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/mac/foundation_util.h" | 12 #include "base/mac/foundation_util.h" |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 | 17 |
| 18 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { | 18 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 42 // Fall back on temp dir if no home directory is defined. | 42 // Fall back on temp dir if no home directory is defined. |
| 43 FilePath rv; | 43 FilePath rv; |
| 44 if (GetTempDir(&rv)) | 44 if (GetTempDir(&rv)) |
| 45 return rv; | 45 return rv; |
| 46 | 46 |
| 47 // Last resort. | 47 // Last resort. |
| 48 return FilePath("/tmp"); | 48 return FilePath("/tmp"); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace base | 51 } // namespace base |
| OLD | NEW |