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

Unified Diff: tools/gn/source_file.cc

Issue 213353004: GN: Move towards only using / on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only generate / in various places Created 6 years, 9 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
« tools/gn/build_settings.cc ('K') | « tools/gn/source_dir.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/source_file.cc
diff --git a/tools/gn/source_file.cc b/tools/gn/source_file.cc
index e5d67753e7f4a958bf09542fd3ead162ae94bcf8..1bbee2458f9882957bb6eaa4b61756645cd41f39 100644
--- a/tools/gn/source_file.cc
+++ b/tools/gn/source_file.cc
@@ -53,11 +53,10 @@ base::FilePath SourceFile::Resolve(const base::FilePath& source_root) const {
} else {
converted.assign(value_);
}
- ConvertPathToSystem(&converted);
return base::FilePath(UTF8ToFilePath(converted));
}
converted.assign(&value_[2], value_.size() - 2);
- ConvertPathToSystem(&converted);
- return source_root.Append(UTF8ToFilePath(converted));
+ return source_root.Append(UTF8ToFilePath(converted))
+ .NormalizePathSeparatorsTo(L'/');
}
« tools/gn/build_settings.cc ('K') | « tools/gn/source_dir.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698