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

Unified Diff: net/url_request/url_request_context.cc

Issue 407093011: Allow URLRequests from one context to have different NetworkDelegates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And fix more stuff... Created 6 years, 5 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_context.cc
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc
index 3a9f69de4fa248d82c009d4ecbbf98601a6acb09..daa21208ade904bcea0839a83691df0d51ab40e5 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -78,7 +78,8 @@ scoped_ptr<URLRequest> URLRequestContext::CreateRequest(
URLRequest::Delegate* delegate,
CookieStore* cookie_store) const {
return scoped_ptr<URLRequest>(
- new URLRequest(url, priority, delegate, this, cookie_store));
+ new URLRequest(url, priority, delegate, this, cookie_store,
+ network_delegate_));
pauljensen 2014/07/31 15:38:17 Could just pass in NULL but I guess it doesn't rea
mmenke 2014/07/31 16:03:14 Yea, I'm fine either way, here. I'm keeping as-is
}
void URLRequestContext::set_cookie_store(CookieStore* cookie_store) {

Powered by Google App Engine
This is Rietveld 408576698