Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: webkit/fileapi/file_system_util.cc

Issue 9320059: Define FilePath::NormalizePathSeparators on all platforms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | webkit/fileapi/isolated_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_util.cc
diff --git a/webkit/fileapi/file_system_util.cc b/webkit/fileapi/file_system_util.cc
index 434c15e0976571f7a6105381c80302126982248d..e0c16a5298e958606d8466d2f3023cf193cb50f4 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;
}
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | webkit/fileapi/isolated_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698