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..3449555137380c48ec22fed36a4a07e34b8e47e1 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; |
+#if !defined(DISABLE_FTP_SUPPORT) |
+ rv = net::ParseFtpDirectoryListing(buffer_, base::Time::Now(), &entries); |
+#endif |
if (rv != net::OK) { |
SendDataToClient("<script>onListingParsingError();</script>\n"); |
return; |