| Index: webkit/fileapi/file_system_util.cc
|
| ===================================================================
|
| --- webkit/fileapi/file_system_util.cc (revision 131715)
|
| +++ webkit/fileapi/file_system_util.cc (working copy)
|
| @@ -224,4 +224,20 @@
|
| }
|
| }
|
|
|
| +std::string FilePathToString(const FilePath& file_path) {
|
| +#if defined(OS_WIN)
|
| + return UTF16ToUTF8(file_path.value());
|
| +#elif defined(OS_POSIX)
|
| + return file_path.value();
|
| +#endif
|
| +}
|
| +
|
| +FilePath StringToFilePath(const std::string& file_path_string) {
|
| +#if defined(OS_WIN)
|
| + return FilePath(UTF8ToUTF16(file_path_string));
|
| +#elif defined(OS_POSIX)
|
| + return FilePath(file_path_string);
|
| +#endif
|
| +}
|
| +
|
| } // namespace fileapi
|
|
|