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..bb053a8e121c4563c5272c1b047e36abd1779f07 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 |
lgombos
2014/07/14 21:54:09
Should be #ifndef instead ?
|
+ rv = net::ParseFtpDirectoryListing(buffer_, base::Time::Now(), &entries); |
+#endif |
if (rv != net::OK) { |
SendDataToClient("<script>onListingParsingError();</script>\n"); |
return; |