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

Unified Diff: net/url_request/url_request.cc

Issue 10534100: Decouple URLRequestJob from URLRequestContext; access NetworkDelegate as a contructor parameter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged with latest sync Created 8 years, 6 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
« no previous file with comments | « content/test/net/url_request_slow_download_job.cc ('k') | net/url_request/url_request_about_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 915cd58de5c2610393fd0052d5b0cd95e541884d..51c627a40cb361bb9ce17416309a3af361eec1d5 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -411,7 +411,7 @@ void URLRequest::Start() {
response_info_.request_time = Time::Now();
// Only notify the delegate for the initial request.
- if (context_ && context_->network_delegate()) {
+ if (context_->network_delegate()) {
int error = context_->network_delegate()->NotifyBeforeURLRequest(
this, before_request_callback_, &delegate_redirect_url_);
if (error == net::ERR_IO_PENDING) {
« no previous file with comments | « content/test/net/url_request_slow_download_job.cc ('k') | net/url_request/url_request_about_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698