Index: base/file_util.cc |
diff --git a/base/file_util.cc b/base/file_util.cc |
index 1639ccee6ea04754028fef37a6a827803ab44ef8..119863639515dc6edc5f2b4bde7e3ac8495189fb 100644 |
--- a/base/file_util.cc |
+++ b/base/file_util.cc |
@@ -165,6 +165,14 @@ bool CreateDirectory(const FilePath& full_path) { |
return CreateDirectoryAndGetError(full_path, NULL); |
} |
+bool GetFileSize(const FilePath& file_path, int64* file_size) { |
+ PlatformFileInfo info; |
+ if (!file_util::GetFileInfo(file_path, &info)) |
+ return false; |
+ *file_size = info.size; |
+ return true; |
+} |
+ |
} // namespace base |
// ----------------------------------------------------------------------------- |
@@ -175,14 +183,6 @@ using base::FileEnumerator; |
using base::FilePath; |
using base::kMaxUniqueFiles; |
-bool GetFileSize(const FilePath& file_path, int64* file_size) { |
- base::PlatformFileInfo info; |
- if (!GetFileInfo(file_path, &info)) |
- return false; |
- *file_size = info.size; |
- return true; |
-} |
- |
bool TouchFile(const FilePath& path, |
const base::Time& last_accessed, |
const base::Time& last_modified) { |