| Index: net/url_request/url_request.cc
|
| diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
|
| index 65dabe908c0f9cbc1cfe9a1095ec703e7e57759c..55a6d140767f71b0c0baf6101645d4b21a1a568c 100644
|
| --- a/net/url_request/url_request.cc
|
| +++ b/net/url_request/url_request.cc
|
| @@ -428,7 +428,8 @@ void URLRequest::Start() {
|
| return;
|
| }
|
|
|
| - StartJob(URLRequestJobManager::GetInstance()->CreateJob(this));
|
| + StartJob(URLRequestJobManager::GetInstance()->CreateJob(
|
| + this, context_->network_delegate()));
|
| }
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
| @@ -447,7 +448,7 @@ void URLRequest::BeforeRequestComplete(int error) {
|
| std::string source("delegate");
|
| net_log_.AddEvent(NetLog::TYPE_CANCELLED,
|
| NetLog::StringCallback("source", &source));
|
| - StartJob(new URLRequestErrorJob(this, error));
|
| + StartJob(new URLRequestErrorJob(this, context_->network_delegate(), error));
|
| } else if (!delegate_redirect_url_.is_empty()) {
|
| GURL new_url;
|
| new_url.Swap(&delegate_redirect_url_);
|
| @@ -458,7 +459,8 @@ void URLRequest::BeforeRequestComplete(int error) {
|
| URLRequestRedirectJob::REDIRECT_307_TEMPORARY_REDIRECT);
|
| StartJob(job);
|
| } else {
|
| - StartJob(URLRequestJobManager::GetInstance()->CreateJob(this));
|
| + StartJob(URLRequestJobManager::GetInstance()->CreateJob(
|
| + this, context_->network_delegate()));
|
| }
|
| }
|
|
|
| @@ -491,7 +493,8 @@ void URLRequest::StartJob(URLRequestJob* job) {
|
| void URLRequest::Restart() {
|
| // Should only be called if the original job didn't make any progress.
|
| DCHECK(job_ && !job_->has_response_started());
|
| - RestartWithJob(URLRequestJobManager::GetInstance()->CreateJob(this));
|
| + RestartWithJob(URLRequestJobManager::GetInstance()->CreateJob(
|
| + this, context_->network_delegate()));
|
| }
|
|
|
| void URLRequest::RestartWithJob(URLRequestJob *job) {
|
|
|