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

Unified Diff: webkit/fileapi/isolated_context.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 | « webkit/fileapi/file_system_util.cc ('k') | webkit/fileapi/isolated_context_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/isolated_context.cc
diff --git a/webkit/fileapi/isolated_context.cc b/webkit/fileapi/isolated_context.cc
index 11b5eb720b1fea86e3abaaf0fa1e4edb7479749e..64a3a0257680282d4c0d523ae668b0e0dbb02f8e 100644
--- a/webkit/fileapi/isolated_context.cc
+++ b/webkit/fileapi/isolated_context.cc
@@ -36,11 +36,7 @@ std::string IsolatedContext::RegisterIsolatedFileSystem(
// Register the basename -> fullpath map. (We only expose the basename
// part to the user scripts)
-#if defined(FILE_PATH_USES_WIN_SEPARATORS)
- FilePath fullpath = iter->NormalizeWindowsPathSeparators();
-#else
- FilePath fullpath = *iter;
-#endif
+ FilePath fullpath = iter->NormalizePathSeparators();
FilePath basename = iter->BaseName();
// TODO(kinuko): Append a suffix or something if we have multiple pathnames
// with the same basename. For now we only register the first one.
« no previous file with comments | « webkit/fileapi/file_system_util.cc ('k') | webkit/fileapi/isolated_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698