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

Unified Diff: content/browser/download/download_manager_impl_unittest.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 | « chrome/browser/ui/webui/extensions/extension_icon_source.cc ('k') | webkit/fileapi/file_system_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_manager_impl_unittest.cc
diff --git a/content/browser/download/download_manager_impl_unittest.cc b/content/browser/download/download_manager_impl_unittest.cc
index 3d894f8e881713490ae3d129f19af80e66b6a29e..d7d8964bc3d63605339f130b51eeae1bc47bbdb3 100644
--- a/content/browser/download/download_manager_impl_unittest.cc
+++ b/content/browser/download/download_manager_impl_unittest.cc
@@ -781,11 +781,7 @@ FilePath ExpandFilenameTestPath(const FilePath::CharType* template_path,
downloads_dir.value());
ReplaceSubstringsAfterOffset(&path, 0, FILE_PATH_LITERAL("$alt"),
alternate_dir.value());
- FilePath file_path(path);
-#if defined(FILE_PATH_USES_WIN_SEPARATORS)
- file_path = file_path.NormalizeWindowsPathSeparators();
-#endif
- return file_path;
+ return FilePath(path).NormalizePathSeparators();
}
} // namespace
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_icon_source.cc ('k') | webkit/fileapi/file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698