Chromium Code Reviews| Index: net/http/http_cache.cc |
| diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc |
| index 4402da8cab4ea9ea49afc47c0afa4bf82ed3fea2..8e15b760f68ae0218bc754ad665d19d0002a4756 100644 |
| --- a/net/http/http_cache.cc |
| +++ b/net/http/http_cache.cc |
| @@ -467,6 +467,13 @@ HttpNetworkSession* HttpCache::GetSession() { |
| return network->GetSession(); |
| } |
| +scoped_ptr<HttpTransactionFactory> HttpCache::SetNetworkLayerForTesting( |
| + scoped_ptr<HttpTransactionFactory> new_network_layer) { |
|
mmenke
2014/01/23 20:40:52
Suggest calling this "SetHttpNetworkTransactionFac
Randy Smith (Not in Mondays)
2014/01/25 21:11:31
Done.
|
| + scoped_ptr<HttpTransactionFactory> old_network_layer(network_layer_.Pass()); |
| + network_layer_ = new_network_layer.Pass(); |
| + return old_network_layer.Pass(); |
| +} |
| + |
| //----------------------------------------------------------------------------- |
| int HttpCache::CreateBackend(disk_cache::Backend** backend, |