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

Unified Diff: content/shell/browser/shell_url_request_context_getter.cc

Issue 1298253002: Remove reference counting from HttpNetworkSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed too much, back up a bit Created 5 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: content/shell/browser/shell_url_request_context_getter.cc
diff --git a/content/shell/browser/shell_url_request_context_getter.cc b/content/shell/browser/shell_url_request_context_getter.cc
index 6554e05119881523f4fc3171c2a1b8ca15ecebff..6bf35a1ade0b89843384d9bc9c66179f00e377cd 100644
--- a/content/shell/browser/shell_url_request_context_getter.cc
+++ b/content/shell/browser/shell_url_request_context_getter.cc
@@ -199,8 +199,10 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
network_session_params.host_resolver =
url_request_context_->host_resolver();
+ storage_->set_http_network_session(
+ make_scoped_ptr(new net::HttpNetworkSession(network_session_params)));
net::HttpCache* main_cache = new net::HttpCache(
- network_session_params, main_backend);
+ storage_->http_network_session(), main_backend, true);
pauljensen 2015/09/02 14:32:29 /* set_up_quic_server_info */
mmenke 2015/09/02 16:29:33 Done.
storage_->set_http_transaction_factory(main_cache);
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory(

Powered by Google App Engine
This is Rietveld 408576698