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

Unified Diff: net/url_request/url_request_error_job.cc

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NetworkDelegate fixed almost everywhere 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: net/url_request/url_request_error_job.cc
diff --git a/net/url_request/url_request_error_job.cc b/net/url_request/url_request_error_job.cc
index c3dc95ea508607209b785a7b7049449075f5ba14..38b4a440d31a8cd942e4950b2bb2255d80dfa405 100644
--- a/net/url_request/url_request_error_job.cc
+++ b/net/url_request/url_request_error_job.cc
@@ -14,8 +14,9 @@
namespace net {
-URLRequestErrorJob::URLRequestErrorJob(URLRequest* request, int error)
- : URLRequestJob(request, request->context()->network_delegate()),
+URLRequestErrorJob::URLRequestErrorJob(
+ URLRequest* request, NetworkDelegate* network_delegate, int error)
+ : URLRequestJob(request, network_delegate),
error_(error),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {}

Powered by Google App Engine
This is Rietveld 408576698