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

Unified Diff: webkit/fileapi/file_system_util.cc

Issue 6833007: More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « webkit/fileapi/file_system_path_manager_unittest.cc ('k') | webkit/fileapi/file_system_util_unittest.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
===================================================================
--- webkit/fileapi/file_system_util.cc (revision 81454)
+++ webkit/fileapi/file_system_util.cc (working copy)
@@ -88,17 +88,17 @@
while (!path.empty() && path[0] == '/')
path.erase(0, 1);
-#if defined(OS_WIN)
- const FilePath::StringType sys_path = base::SysUTF8ToWide(path);
-#elif defined(OS_POSIX)
- const FilePath::StringType sys_path = path;
-#endif
if (origin_url)
*origin_url = origin;
if (type)
*type = file_system_type;
if (file_path)
- *file_path = FilePath(sys_path);
+#if defined(OS_WIN)
+ *file_path = FilePath(base::SysUTF8ToWide(path)).
+ NormalizeWindowsPathSeparators();
+#elif defined(OS_POSIX)
+ *file_path = FilePath(path);
+#endif
return true;
}
« no previous file with comments | « webkit/fileapi/file_system_path_manager_unittest.cc ('k') | webkit/fileapi/file_system_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698