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

Unified Diff: tools/gn/source_dir.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
Index: tools/gn/source_dir.cc
diff --git a/tools/gn/source_dir.cc b/tools/gn/source_dir.cc
index 81340f94d2b4988af701bdfbae076310e4b571f8..d8bcd6cc9b02ce81705ed6ebe6a5d3a8465f5c49 100644
--- a/tools/gn/source_dir.cc
+++ b/tools/gn/source_dir.cc
@@ -130,14 +130,13 @@ base::FilePath SourceDir::Resolve(const base::FilePath& source_root) const {
} else {
converted.assign(value_);
}
- ConvertPathToSystem(&converted);
return base::FilePath(UTF8ToFilePath(converted));
}
// String the double-leading slash for source-relative paths.
converted.assign(&value_[2], value_.size() - 2);
- ConvertPathToSystem(&converted);
- return source_root.Append(UTF8ToFilePath(converted));
+ return source_root.Append(UTF8ToFilePath(converted))
+ .NormalizePathSeparatorsTo(L'/');
}
void SourceDir::SwapValue(std::string* v) {
« tools/gn/build_settings.cc ('K') | « tools/gn/setup.cc ('k') | tools/gn/source_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698