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

Unified Diff: net/url_request/url_request_ftp_job.cc

Issue 13609002: fix a problem that android cannot download files with basic authentication (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: net/url_request/url_request_ftp_job.cc
diff --git a/net/url_request/url_request_ftp_job.cc b/net/url_request/url_request_ftp_job.cc
index cc3e3f88714d1061303871ac10b56fc18ecbd014..366868439d3568db0c44369e6b26663fc35711e5 100644
--- a/net/url_request/url_request_ftp_job.cc
+++ b/net/url_request/url_request_ftp_job.cc
@@ -321,6 +321,10 @@ bool URLRequestFtpJob::NeedsAuth() {
return server_auth_ && server_auth_->state == AUTH_STATE_NEED_AUTH;
}
+bool URLRequestFtpJob::HasAuth() const {
+ return server_auth_ && server_auth_->state == AUTH_STATE_HAVE_AUTH;
+}
+
void URLRequestFtpJob::GetAuthChallengeInfo(
scoped_refptr<AuthChallengeInfo>* result) {
DCHECK((server_auth_ != NULL) &&

Powered by Google App Engine
This is Rietveld 408576698