Index: net/http/http_cache.cc |
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc |
index ac9dda5b517a74d6414798408ab93edd14ae447b..e4319e10a2d732005d6782c01429b92e033b6b54 100644 |
--- a/net/http/http_cache.cc |
+++ b/net/http/http_cache.cc |
@@ -290,7 +290,8 @@ HttpCache::HttpCache(const net::HttpNetworkSession::Params& params, |
backend_factory_(backend_factory), |
building_backend_(false), |
mode_(NORMAL), |
- quic_server_info_factory_(new QuicServerInfoFactoryAdaptor(this)), |
+ quic_server_info_factory_(params.enable_quic_persist_server_info ? |
+ new QuicServerInfoFactoryAdaptor(this) : NULL), |
network_layer_(new HttpNetworkLayer(new HttpNetworkSession(params))) { |
HttpNetworkSession* session = network_layer_->GetSession(); |
session->quic_stream_factory()->set_quic_server_info_factory( |