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()); |