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

Unified Diff: net/ftp/ftp_directory_listing_parser_netware.cc

Issue 1220653002: Fix some case-insensitive cases for StartsWith (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: grt's review comments, Mac fix Created 5 years, 6 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
« no previous file with comments | « net/base/net_util_icu.cc ('k') | net/ftp/ftp_directory_listing_parser_vms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_directory_listing_parser_netware.cc
diff --git a/net/ftp/ftp_directory_listing_parser_netware.cc b/net/ftp/ftp_directory_listing_parser_netware.cc
index e8b635d14f5d356ec16bb8d3c03ca62ecce47bc2..bc738ae2eb046dae5b768a69576ac78508d50ac2 100644
--- a/net/ftp/ftp_directory_listing_parser_netware.cc
+++ b/net/ftp/ftp_directory_listing_parser_netware.cc
@@ -40,7 +40,8 @@ bool ParseFtpDirectoryListingNetware(
const base::Time& current_time,
std::vector<FtpDirectoryListingEntry>* entries) {
if (!lines.empty() &&
- !base::StartsWith(lines[0], base::ASCIIToUTF16("total "), true)) {
+ !base::StartsWith(lines[0], base::ASCIIToUTF16("total "),
+ base::CompareCase::SENSITIVE)) {
return false;
}
« no previous file with comments | « net/base/net_util_icu.cc ('k') | net/ftp/ftp_directory_listing_parser_vms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698