diff options
Diffstat (limited to 'webkit/fileapi/file_system_util.cc')
-rw-r--r-- | webkit/fileapi/file_system_util.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/webkit/fileapi/file_system_util.cc b/webkit/fileapi/file_system_util.cc index 434c15e..e0c16a5 100644 --- a/webkit/fileapi/file_system_util.cc +++ b/webkit/fileapi/file_system_util.cc @@ -86,12 +86,8 @@ bool CrackFileSystemURL(const GURL& url, GURL* origin_url, FileSystemType* type, if (type) *type = file_system_type; if (file_path) -#if defined(OS_WIN) - *file_path = FilePath(base::SysUTF8ToWide(path)). - NormalizeWindowsPathSeparators().StripTrailingSeparators(); -#elif defined(OS_POSIX) - *file_path = FilePath(path).StripTrailingSeparators(); -#endif + *file_path = FilePath::FromUTF8Unsafe(path). + NormalizePathSeparators().StripTrailingSeparators(); return true; } |