Chromium Code Reviews| Index: bin/file_macos.cc |
| =================================================================== |
| --- bin/file_macos.cc (revision 651) |
| +++ bin/file_macos.cc (working copy) |
| @@ -118,6 +118,16 @@ |
| } |
| +char* File::GetCanonicalPath(const char* pathname) { |
| + char* abs_path = NULL; |
| + if (pathname != NULL) { |
| + abs_path = realpath(pathname, NULL); |
| + assert(abs_path == NULL || IsAbsolutePath(abs_path)); |
| + } |
| + return abs_path; |
| +} |
| + |
| + |
| const char* File::PathSeparator() { |
| return "/"; |
| } |