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

Unified Diff: net/url_request/url_request_job.cc

Issue 12328072: Remove some calls to URLRequestContext::network_delegate(). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make network_delegate_ a protected member of URLRequestJob. Created 7 years, 10 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: net/url_request/url_request_job.cc
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc
index 6bbaa2935d92a68ef35555aecefdc7afc59cabb5..b4f7cb494a75a05f9b2a67b71f3b4bf37f3c784e 100644
--- a/net/url_request/url_request_job.cc
+++ b/net/url_request/url_request_job.cc
@@ -23,6 +23,7 @@ namespace net {
URLRequestJob::URLRequestJob(URLRequest* request,
NetworkDelegate* network_delegate)
: request_(request),
+ network_delegate_(network_delegate),
done_(false),
prefilter_bytes_read_(0),
postfilter_bytes_read_(0),
@@ -32,7 +33,6 @@ URLRequestJob::URLRequestJob(URLRequest* request,
has_handled_response_(false),
expected_content_size_(-1),
deferred_redirect_status_code_(-1),
- network_delegate_(network_delegate),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
base::SystemMonitor* system_monitor = base::SystemMonitor::Get();
if (system_monitor)

Powered by Google App Engine
This is Rietveld 408576698