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

Unified Diff: net/base/filename_util.cc

Issue 647883002: git cl format the final third of the net/base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: net/base/filename_util.cc
diff --git a/net/base/filename_util.cc b/net/base/filename_util.cc
index 6573c2261610593dd145b071f4ad24bf54082c07..9bf83431187ad61a11b8e2ef8dc46b2c908e2c60 100644
--- a/net/base/filename_util.cc
+++ b/net/base/filename_util.cc
@@ -92,7 +92,7 @@ bool FileURLToFilePath(const GURL& url, base::FilePath* file_path) {
path.append(url.path());
}
std::replace(path.begin(), path.end(), '/', '\\');
-#else // defined(OS_WIN)
+#else // defined(OS_WIN)
// Firefox seems to ignore the "host" of a file url if there is one. That is,
// file://foo/bar.txt maps to /bar.txt.
// TODO(dhg): This should probably take into account UNCs which could
@@ -123,7 +123,7 @@ bool FileURLToFilePath(const GURL& url, base::FilePath* file_path) {
// string back. We detect this and report failure.
file_path_str = base::SysNativeMBToWide(path);
}
-#else // defined(OS_WIN)
+#else // defined(OS_WIN)
// Collapse multiple path slashes into a single path slash.
std::string new_path;
do {

Powered by Google App Engine
This is Rietveld 408576698