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

Unified Diff: net/url_request/url_request_context_builder.cc

Issue 12328072: Remove some calls to URLRequestContext::network_delegate(). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Provide read-only access to network delegate for derived classes. Created 7 years, 9 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 | « no previous file | net/url_request/url_request_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_builder.cc
diff --git a/net/url_request/url_request_context_builder.cc b/net/url_request/url_request_context_builder.cc
index 28220ed7d568fe5fffcc91be493b13d153ab02a6..97c3cf2884dc561402717796b26f6dbfe6edbe5c 100644
--- a/net/url_request/url_request_context_builder.cc
+++ b/net/url_request/url_request_context_builder.cc
@@ -200,7 +200,8 @@ URLRequestContext* URLRequestContextBuilder::Build() {
if (!network_delegate_)
network_delegate_.reset(new BasicNetworkDelegate);
- storage->set_network_delegate(network_delegate_.release());
+ NetworkDelegate* network_delegate = network_delegate_.release();
+ storage->set_network_delegate(network_delegate);
storage->set_host_resolver(net::HostResolver::CreateDefaultResolver(NULL));
@@ -245,8 +246,7 @@ URLRequestContext* URLRequestContextBuilder::Build() {
context->ssl_config_service();
network_session_params.http_auth_handler_factory =
context->http_auth_handler_factory();
- network_session_params.network_delegate =
- context->network_delegate();
+ network_session_params.network_delegate = network_delegate;
network_session_params.http_server_properties =
context->http_server_properties();
network_session_params.net_log = context->net_log();
« no previous file with comments | « no previous file | net/url_request/url_request_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698