| Index: content/test/net/url_request_slow_download_job.cc
|
| diff --git a/content/test/net/url_request_slow_download_job.cc b/content/test/net/url_request_slow_download_job.cc
|
| index 5fc435dfa34b42b0bcc691645ad291b054980e12..4d69145e24db0a5251f72da37bd71bcac4b95aff 100644
|
| --- a/content/test/net/url_request_slow_download_job.cc
|
| +++ b/content/test/net/url_request_slow_download_job.cc
|
| @@ -15,7 +15,6 @@
|
| #include "net/base/io_buffer.h"
|
| #include "net/http/http_response_headers.h"
|
| #include "net/url_request/url_request.h"
|
| -#include "net/url_request/url_request_context.h"
|
| #include "net/url_request/url_request_filter.h"
|
|
|
| using content::BrowserThread;
|
| @@ -55,9 +54,11 @@ void URLRequestSlowDownloadJob::AddUrlHandler() {
|
| // static
|
| net::URLRequestJob* URLRequestSlowDownloadJob::Factory(
|
| net::URLRequest* request,
|
| + net::NetworkDelegate* network_delegate,
|
| const std::string& scheme) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| - URLRequestSlowDownloadJob* job = new URLRequestSlowDownloadJob(request);
|
| + URLRequestSlowDownloadJob* job = new URLRequestSlowDownloadJob(
|
| + request, network_delegate);
|
| if (request->url().spec() != kFinishDownloadUrl)
|
| pending_requests_.Get().insert(job);
|
| return job;
|
| @@ -79,8 +80,9 @@ void URLRequestSlowDownloadJob::FinishPendingRequests() {
|
| }
|
| }
|
|
|
| -URLRequestSlowDownloadJob::URLRequestSlowDownloadJob(net::URLRequest* request)
|
| - : net::URLRequestJob(request, request->context()->network_delegate()),
|
| +URLRequestSlowDownloadJob::URLRequestSlowDownloadJob(
|
| + net::URLRequest* request, net::NetworkDelegate* network_delegate)
|
| + : net::URLRequestJob(request, network_delegate),
|
| bytes_already_sent_(0),
|
| should_finish_download_(false),
|
| buffer_size_(0),
|
|
|