Index: net/ftp/ftp_directory_listing_parser_vms.cc |
diff --git a/net/ftp/ftp_directory_listing_parser_vms.cc b/net/ftp/ftp_directory_listing_parser_vms.cc |
index 05e687f1e239279cd2d5859cee149ba8040a84fe..cffc960576d493c3310069d4d33114c83b0eed41 100644 |
--- a/net/ftp/ftp_directory_listing_parser_vms.cc |
+++ b/net/ftp/ftp_directory_listing_parser_vms.cc |
@@ -206,11 +206,12 @@ bool ParseFtpDirectoryListingVms( |
// to distinguish it from "ls -l" format). |
bool seen_error = false; |
+ base::string16 total_of = base::ASCIIToUTF16("Total of "); |
for (size_t i = 0; i < lines.size(); i++) { |
if (lines[i].empty()) |
continue; |
- if (StartsWith(lines[i], base::ASCIIToUTF16("Total of "), true)) { |
+ if (base::StartsWith(lines[i], total_of, base::CompareCase::SENSITIVE)) { |
// After the "total" line, all following lines must be empty. |
for (size_t j = i + 1; j < lines.size(); j++) |
if (!lines[j].empty()) |