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

Unified Diff: webkit/appcache/appcache_update_job.cc

Issue 10870060: Removed calls to URLRequest::URLRequest in favor of URLRequestContext::CreateRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698