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

Unified Diff: webkit/fileapi/file_system_util.cc

Issue 14588006: Fix VirtualPath::GetNormalizedFilePath on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 7 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 | « no previous file | 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
diff --git a/webkit/fileapi/file_system_util.cc b/webkit/fileapi/file_system_util.cc
index 82ba1438c54e3ec6a069273ee39075bbc9d94f2f..630eebb920e85aebd56aac6c209beca7c0375f8e 100644
--- a/webkit/fileapi/file_system_util.cc
+++ b/webkit/fileapi/file_system_util.cc
@@ -110,7 +110,7 @@ base::FilePath::StringType VirtualPath::GetNormalizedFilePath(
base::FilePath::StringType normalized_path = path.value();
const size_t num_separators = base::FilePath::StringType(
base::FilePath::kSeparators).length();
- for (size_t i = 1; i < num_separators; ++i) {
+ for (size_t i = 0; i < num_separators; ++i) {
std::replace(normalized_path.begin(), normalized_path.end(),
base::FilePath::kSeparators[i], kSeparator);
}
« no previous file with comments | « no previous file | webkit/fileapi/file_system_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698