Fix the build when disable_ftp_support is set to 1

Review URL: https://codereview.chromium.org/385163007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283340 0039d316-1c4b-4281-b951-d872f2087c98
parent 1ca5fc5d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment