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

Unified Diff: net/url_request/url_request_http_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_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 988ecdbcf808c0656442f954775a08956adcd945..d2dc7203a06e56f10755b673e7e3fade7c7a85d9 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -1093,6 +1093,11 @@ bool URLRequestHttpJob::NeedsAuth() {
return false;
}
+bool URLRequestHttpJob::HasAuth() const {
+ return proxy_auth_state_ == AUTH_STATE_HAVE_AUTH ||
+ server_auth_state_ == AUTH_STATE_HAVE_AUTH;
asanka 2013/04/04 17:20:31 These aren't set if the request used cached creden
qinmin 2013/04/04 22:34:25 Use transaction_->HasAuth() to get the credentials
+}
+
void URLRequestHttpJob::GetAuthChallengeInfo(
scoped_refptr<AuthChallengeInfo>* result) {
DCHECK(transaction_.get());

Powered by Google App Engine
This is Rietveld 408576698