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

Unified Diff: net/url_request/url_request_test_util.cc

Issue 12328072: Remove some calls to URLRequestContext::network_delegate(). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index 5f81e447629044e34efb2211ff0836aa6733164c..a97d39fd6c2b57dddafca62a289efd6050c3b8ee 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -134,7 +134,14 @@ void TestURLRequestContext::Init() {
TestURLRequest::TestURLRequest(const GURL& url,
Delegate* delegate,
TestURLRequestContext* context)
- : URLRequest(url, delegate, context) {
+ : URLRequest(url, delegate, context, context->network_delegate()) {
+}
+
+TestURLRequest::TestURLRequest(const GURL& url,
+ Delegate* delegate,
+ TestURLRequestContext* context,
+ NetworkDelegate* network_delegate)
+ : URLRequest(url, delegate, context, network_delegate) {
}
TestURLRequest::~TestURLRequest() {

Powered by Google App Engine
This is Rietveld 408576698