| 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 b52e3c807a6e47b54189ecaaf9a9441a07ff6a76..4e06093477fece5d3fd2000c20c2cfb25765db42 100644
|
| --- a/net/ftp/ftp_directory_listing_parser_vms.cc
|
| +++ b/net/ftp/ftp_directory_listing_parser_vms.cc
|
| @@ -121,9 +121,9 @@ bool LooksLikeVmsFileProtectionListing(const base::string16& input) {
|
| return false;
|
|
|
| return LooksLikeVmsFileProtectionListingPart(parts[0]) &&
|
| - LooksLikeVmsFileProtectionListingPart(parts[1]) &&
|
| - LooksLikeVmsFileProtectionListingPart(parts[2]) &&
|
| - LooksLikeVmsFileProtectionListingPart(parts[3]);
|
| + LooksLikeVmsFileProtectionListingPart(parts[1]) &&
|
| + LooksLikeVmsFileProtectionListingPart(parts[2]) &&
|
| + LooksLikeVmsFileProtectionListingPart(parts[3]);
|
| }
|
|
|
| bool LooksLikeVmsUserIdentificationCode(const base::string16& input) {
|
| @@ -134,10 +134,9 @@ bool LooksLikeVmsUserIdentificationCode(const base::string16& input) {
|
|
|
| bool LooksLikeVMSError(const base::string16& text) {
|
| static const char* kPermissionDeniedMessages[] = {
|
| - "%RMS-E-FNF", // File not found.
|
| - "%RMS-E-PRV", // Access denied.
|
| - "%SYSTEM-F-NOPRIV",
|
| - "privilege",
|
| + "%RMS-E-FNF", // File not found.
|
| + "%RMS-E-PRV", // Access denied.
|
| + "%SYSTEM-F-NOPRIV", "privilege",
|
| };
|
|
|
| for (size_t i = 0; i < arraysize(kPermissionDeniedMessages); i++) {
|
| @@ -153,7 +152,7 @@ bool VmsDateListingToTime(const std::vector<base::string16>& columns,
|
| base::Time* time) {
|
| DCHECK_EQ(4U, columns.size());
|
|
|
| - base::Time::Exploded time_exploded = { 0 };
|
| + base::Time::Exploded time_exploded = {0};
|
|
|
| // Date should be in format DD-MMM-YYYY.
|
| std::vector<base::string16> date_parts;
|
| @@ -162,8 +161,7 @@ bool VmsDateListingToTime(const std::vector<base::string16>& columns,
|
| return false;
|
| if (!base::StringToInt(date_parts[0], &time_exploded.day_of_month))
|
| return false;
|
| - if (!FtpUtil::AbbreviatedMonthToNumber(date_parts[1],
|
| - &time_exploded.month))
|
| + if (!FtpUtil::AbbreviatedMonthToNumber(date_parts[1], &time_exploded.month))
|
| return false;
|
| if (!base::StringToInt(date_parts[2], &time_exploded.year))
|
| return false;
|
|
|