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

Unified Diff: net/url_request/url_request_test_util.cc

Issue 1298253002: Remove reference counting from HttpNetworkSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 5 years, 2 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 | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_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_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index efcc759ba6590b57fa73a2d51af4df34e06e0eea..9d21a76f6d924f752d3b73cd79e9933a51b22cab 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -108,10 +108,11 @@ void TestURLRequestContext::Init() {
params.network_delegate = network_delegate();
params.http_server_properties = http_server_properties();
params.net_log = net_log();
- context_storage_.set_http_transaction_factory(
- make_scoped_ptr(new HttpCache(new HttpNetworkSession(params),
- HttpCache::DefaultBackend::InMemory(0)))
- .Pass());
+ context_storage_.set_http_network_session(
+ make_scoped_ptr(new HttpNetworkSession(params)));
+ context_storage_.set_http_transaction_factory(make_scoped_ptr(
+ new HttpCache(context_storage_.http_network_session(),
+ HttpCache::DefaultBackend::InMemory(0), false)));
}
// In-memory cookie store.
if (!cookie_store())
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698