Chromium Code Reviews| Index: base/file_util.cc |
| =================================================================== |
| --- base/file_util.cc (revision 4466) |
| +++ base/file_util.cc (working copy) |
| @@ -289,7 +289,7 @@ |
| return true; |
| } |
| -bool GetFileSize(const std::wstring& file_path, int64* file_size) { |
| +bool GetFileSize(const FilePath& file_path, int64* file_size) { |
| FileInfo info; |
| if (!GetFileInfo(file_path, &info)) |
| return false; |
| @@ -350,6 +350,12 @@ |
| *path_str = path.ToWStringHack(); |
| return true; |
| } |
|
agl
2008/11/04 20:57:27
Possibly put a line between the functions.
|
| +bool GetFileInfo(const std::wstring& file_path, FileInfo* results) { |
| + return GetFileInfo(FilePath::FromWStringHack(file_path), results); |
| +} |
| +bool GetFileSize(const std::wstring& file_path, int64* file_size) { |
| + return GetFileSize(FilePath::FromWStringHack(file_path), file_size); |
| +} |
| bool GetTempDir(std::wstring* path_str) { |
| FilePath path; |
| if (!GetTempDir(&path)) |