Index: content/child/ftp_directory_listing_response_delegate.cc |
diff --git a/content/child/ftp_directory_listing_response_delegate.cc b/content/child/ftp_directory_listing_response_delegate.cc |
index c3cc82705d9d281273eaa14b06a1183a20719884..09e6ca8a4e780ab9a4b258a605f618cebfabf944 100644 |
--- a/content/child/ftp_directory_listing_response_delegate.cc |
+++ b/content/child/ftp_directory_listing_response_delegate.cc |
@@ -82,7 +82,10 @@ void FtpDirectoryListingResponseDelegate::OnReceivedData(const char* data, |
void FtpDirectoryListingResponseDelegate::OnCompletedRequest() { |
std::vector<FtpDirectoryListingEntry> entries; |
- int rv = net::ParseFtpDirectoryListing(buffer_, base::Time::Now(), &entries); |
+ int rv = -1; |
+#ifdef DISABLE_FTP_SUPPORT |
+ rv = net::ParseFtpDirectoryListing(buffer_, base::Time::Now(), &entries); |
+#endif |
if (rv != net::OK) { |
SendDataToClient("<script>onListingParsingError();</script>\n"); |
return; |
@@ -103,7 +106,6 @@ void FtpDirectoryListingResponseDelegate::OnCompletedRequest() { |
entry.name, entry.raw_name, is_directory, size, entry.last_modified)); |
} |
} |
- |
lgombos
2014/07/14 15:00:57
You probably should not remove this line.
|
void FtpDirectoryListingResponseDelegate::Init(const GURL& response_url) { |
net::UnescapeRule::Type unescape_rules = net::UnescapeRule::SPACES | |
net::UnescapeRule::URL_SPECIAL_CHARS; |