| Index: base/files/file_util.cc
|
| diff --git a/base/files/file_util.cc b/base/files/file_util.cc
|
| index 32dab6bd40d8ee6b0113522259a8b2ff123f5712..4b6b8886d8ad5d8bc0fd4855b10c97db52420d2e 100644
|
| --- a/base/files/file_util.cc
|
| +++ b/base/files/file_util.cc
|
| @@ -22,6 +22,7 @@
|
|
|
| namespace base {
|
|
|
| +#if !defined(OS_NACL_NONSFI)
|
| namespace {
|
|
|
| // The maximum number of 'uniquified' files we will try to create.
|
| @@ -120,6 +121,7 @@ bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2) {
|
|
|
| return true;
|
| }
|
| +#endif // !defined(OS_NACL_NONSFI)
|
|
|
| bool ReadFileToString(const FilePath& path,
|
| std::string* contents,
|
| @@ -162,6 +164,7 @@ bool ReadFileToString(const FilePath& path, std::string* contents) {
|
| return ReadFileToString(path, contents, std::numeric_limits<size_t>::max());
|
| }
|
|
|
| +#if !defined(OS_NACL_NONSFI)
|
| bool IsDirectoryEmpty(const FilePath& dir_path) {
|
| FileEnumerator files(dir_path, false,
|
| FileEnumerator::FILES | FileEnumerator::DIRECTORIES);
|
| @@ -207,6 +210,7 @@ bool TouchFile(const FilePath& path,
|
|
|
| return file.SetTimes(last_accessed, last_modified);
|
| }
|
| +#endif // !defined(OS_NACL_NONSFI)
|
|
|
| bool CloseFile(FILE* file) {
|
| if (file == NULL)
|
| @@ -214,6 +218,7 @@ bool CloseFile(FILE* file) {
|
| return fclose(file) == 0;
|
| }
|
|
|
| +#if !defined(OS_NACL_NONSFI)
|
| bool TruncateFile(FILE* file) {
|
| if (file == NULL)
|
| return false;
|
| @@ -251,5 +256,6 @@ int GetUniquePathNumber(const FilePath& path,
|
|
|
| return -1;
|
| }
|
| +#endif // !defined(OS_NACL_NONSFI)
|
|
|
| } // namespace base
|
|
|