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

Unified Diff: base/files/file_path.cc

Issue 1997153002: libchrome: Several upstreamable fixes from libchrome Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Addressed feedback Created 4 years, 7 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: base/files/file_path.cc
diff --git a/base/files/file_path.cc b/base/files/file_path.cc
index 2c199e131a56ee1976dded1dd25af158ac1c6252..4adfa279dc7cf9af3634b4d286fd71aa55f29a10 100644
--- a/base/files/file_path.cc
+++ b/base/files/file_path.cc
@@ -53,6 +53,8 @@ StringPieceType::size_type FindDriveLetter(StringPieceType path) {
(path[0] >= L'a' && path[0] <= L'z'))) {
return 1;
}
+#else
+ (void)path; // Avoid an unused warning.
#endif // FILE_PATH_USES_DRIVE_LETTERS
return StringType::npos;
}
@@ -1319,6 +1321,7 @@ FilePath FilePath::NormalizePathSeparatorsTo(CharType separator) const {
}
return FilePath(copy);
#else
+ (void)separator; // Avoid an unused warning.
return *this;
#endif
}

Powered by Google App Engine
This is Rietveld 408576698