diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-23 21:07:47 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-23 21:07:47 +0000 |
commit | f6b314d1e54cf31a87825f77abe6df4acedf98e3 (patch) | |
tree | 2d7a97bd481b19a4750690fa3b80401425dad155 /tools/gn/filesystem_utils.h | |
parent | 17f43bf95e9472153b0386280c439a4c34cb6328 (diff) | |
download | chromium_src-f6b314d1e54cf31a87825f77abe6df4acedf98e3.zip chromium_src-f6b314d1e54cf31a87825f77abe6df4acedf98e3.tar.gz chromium_src-f6b314d1e54cf31a87825f77abe6df4acedf98e3.tar.bz2 |
Implement MakeAbsolutePathRelativeIfPossible on Windows for GN.
BUG=
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/22893047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219332 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gn/filesystem_utils.h')
-rw-r--r-- | tools/gn/filesystem_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gn/filesystem_utils.h b/tools/gn/filesystem_utils.h index 4ab4ec5..90e9d50 100644 --- a/tools/gn/filesystem_utils.h +++ b/tools/gn/filesystem_utils.h @@ -111,6 +111,8 @@ bool IsPathAbsolute(const base::StringPiece& path); // The source_root should be a base::FilePath converted to UTF-8. On Windows, // it should begin with a "C:/" rather than being our SourceFile's style // ("/C:/"). The source root can end with a slash or not. +// +// Note that this does not attempt to normalize slashes in the output. bool MakeAbsolutePathRelativeIfPossible(const base::StringPiece& source_root, const base::StringPiece& path, std::string* dest); |