GN: Move towards only using / on Windows

Remove most of the \ handling code, and start some normalization to /
as necessary. Paths that come from actions, etc. aren't validated yet.

This makes the Windows build get farther, but now it fails
with things similar to:

ninja: Entering directory `out_gn2'
ninja: error: WriteFile(obj/third_party/re2/re2/re2.unicode_groups.obj.rsp): Unable to create file. No such file or directory

Looks like we're not creating the subtree for ninja to write
rsp files to? Not sure.

This removes the last argument from rebase_path, so might have some
migration issues in landing the binary.

R=brettw@chromium.org
BUG=354626

Review URL: https://codereview.chromium.org/213353004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261311 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: ee55eaceea8d7632a59761c603af0f4503db00df
diff --git a/base/files/file_path.h b/base/files/file_path.h
index 5695767..5410e0d 100644
--- a/base/files/file_path.h
+++ b/base/files/file_path.h
@@ -374,6 +374,10 @@
   // (if FILE_PATH_USES_WIN_SEPARATORS is true), or do nothing on POSIX systems.
   FilePath NormalizePathSeparators() const;
 
+  // Normalize all path separattors to given type on Windows
+  // (if FILE_PATH_USES_WIN_SEPARATORS is true), or do nothing on POSIX systems.
+  FilePath NormalizePathSeparatorsTo(CharType separator) const;
+
   // Compare two strings in the same way the file system does.
   // Note that these always ignore case, even on file systems that are case-
   // sensitive. If case-sensitive comparison is ever needed, add corresponding