diff options
author | mmenke <mmenke@chromium.org> | 2015-10-13 10:16:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-13 17:17:29 +0000 |
commit | e65e7af826f0a081c6e9704381e9604afe26ca09 (patch) | |
tree | 8dd89f82fb3e174f293ec43c22ad8a908196b034 /net/http/mock_http_cache.cc | |
parent | 5187806982cdaf12248d947a3f12c544a1ae79b3 (diff) | |
download | chromium_src-e65e7af826f0a081c6e9704381e9604afe26ca09.zip chromium_src-e65e7af826f0a081c6e9704381e9604afe26ca09.tar.gz chromium_src-e65e7af826f0a081c6e9704381e9604afe26ca09.tar.bz2 |
Reland remove reference counting from HttpNetworkSession.
This was originally landed in
https://crrev.com/468be2ff331c13b1a081d10a3c17e5366d26e577
and reverted in https://crrev.com/6b3af6e07d19ebb3f86df612ee5a08c8dc8f78ab, due to
a new leak in a test causing bots to crash in a fun and exciting manner.
BUG=515947
TBR=sgurun@chromium.org,davidben@chromium.org,droger@chromium.org,zea@chromium.org
Review URL: https://codereview.chromium.org/1389743003
Cr-Commit-Position: refs/heads/master@{#353774}
Diffstat (limited to 'net/http/mock_http_cache.cc')
-rw-r--r-- | net/http/mock_http_cache.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/http/mock_http_cache.cc b/net/http/mock_http_cache.cc index c483323..ce49d33 100644 --- a/net/http/mock_http_cache.cc +++ b/net/http/mock_http_cache.cc @@ -524,13 +524,10 @@ int MockBackendFactory::CreateBackend(NetLog* net_log, //----------------------------------------------------------------------------- -MockHttpCache::MockHttpCache() - : http_cache_(new MockNetworkLayer(), NULL, new MockBackendFactory()) { -} +MockHttpCache::MockHttpCache() : MockHttpCache(new MockBackendFactory()) {} MockHttpCache::MockHttpCache(HttpCache::BackendFactory* disk_cache_factory) - : http_cache_(new MockNetworkLayer(), NULL, disk_cache_factory) { -} + : http_cache_(new MockNetworkLayer(), nullptr, disk_cache_factory, true) {} disk_cache::Backend* MockHttpCache::backend() { TestCompletionCallback cb; |