| Index: webkit/appcache/appcache_update_job.cc
|
| diff --git a/webkit/appcache/appcache_update_job.cc b/webkit/appcache/appcache_update_job.cc
|
| index 29e3b1a44e63e12bb7f4cfc6b2b356c4faf5a4a3..10929042e6aed2cda1935604c1c74a778328ff23 100644
|
| --- a/webkit/appcache/appcache_update_job.cc
|
| +++ b/webkit/appcache/appcache_update_job.cc
|
| @@ -15,6 +15,7 @@
|
| #include "net/base/net_errors.h"
|
| #include "net/http/http_request_headers.h"
|
| #include "net/http/http_response_headers.h"
|
| +#include "net/url_request/url_request_context.h"
|
| #include "webkit/appcache/appcache_group.h"
|
| #include "webkit/appcache/appcache_histograms.h"
|
|
|
| @@ -97,10 +98,8 @@ AppCacheUpdateJob::URLFetcher::URLFetcher(
|
| fetch_type_(fetch_type),
|
| retry_503_attempts_(0),
|
| buffer_(new net::IOBuffer(kBufferSize)),
|
| - ALLOW_THIS_IN_INITIALIZER_LIST(
|
| - request_(new net::URLRequest(url,
|
| - this,
|
| - job->service_->request_context()))) {
|
| + ALLOW_THIS_IN_INITIALIZER_LIST(request_(
|
| + job->service_->request_context()->CreateRequest(url, this))) {
|
| }
|
|
|
| AppCacheUpdateJob::URLFetcher::~URLFetcher() {
|
| @@ -288,9 +287,7 @@ bool AppCacheUpdateJob::URLFetcher::MaybeRetryRequest() {
|
| return false;
|
| }
|
| ++retry_503_attempts_;
|
| - request_.reset(new net::URLRequest(url_,
|
| - this,
|
| - job_->service_->request_context()));
|
| + request_.reset(job_->service_->request_context()->CreateRequest(url_, this));
|
| Start();
|
| return true;
|
| }
|
|
|