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

Unified Diff: net/ftp/ftp_directory_listing_parser_ls.cc

Issue 6515009: FTP: Compatibility fix for "ls -l" style directory listing parser.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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/ftp/ftp_directory_listing_parser_ls.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_directory_listing_parser_ls.cc
===================================================================
--- net/ftp/ftp_directory_listing_parser_ls.cc (revision 74649)
+++ net/ftp/ftp_directory_listing_parser_ls.cc (working copy)
@@ -102,8 +102,7 @@
FtpDirectoryListingParserLs::FtpDirectoryListingParserLs(
const base::Time& current_time)
- : received_nonempty_line_(false),
- received_total_line_(false),
+ : received_total_line_(false),
current_time_(current_time) {
}
@@ -114,13 +113,8 @@
}
bool FtpDirectoryListingParserLs::ConsumeLine(const string16& line) {
- if (line.empty() && !received_nonempty_line_) {
- // Allow empty lines only at the beginning of the listing. For example VMS
- // systems in Unix emulation mode add an empty line before the first listing
- // entry.
+ if (line.empty())
return true;
- }
- received_nonempty_line_ = true;
std::vector<string16> columns;
base::SplitString(CollapseWhitespace(line, false), ' ', &columns);
« no previous file with comments | « net/ftp/ftp_directory_listing_parser_ls.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698