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

Unified Diff: content/child/ftp_directory_listing_response_delegate.cc

Issue 385163007: Fix the build when disable_ftp_support is set to 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the mistake ifndef Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698