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

Unified Diff: net/http/http_cache.cc

Issue 185083002: Avoid persisting of QUIC server config information in Stable and Beta (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Persisting of QUIC server config information Created 6 years, 10 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: net/http/http_cache.cc
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index ac9dda5b517a74d6414798408ab93edd14ae447b..fdf40e42350e06204161af1d968e163b074f815d 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -290,11 +290,13 @@ HttpCache::HttpCache(const net::HttpNetworkSession::Params& params,
backend_factory_(backend_factory),
building_backend_(false),
mode_(NORMAL),
- quic_server_info_factory_(new QuicServerInfoFactoryAdaptor(this)),
network_layer_(new HttpNetworkLayer(new HttpNetworkSession(params))) {
- HttpNetworkSession* session = network_layer_->GetSession();
- session->quic_stream_factory()->set_quic_server_info_factory(
- quic_server_info_factory_.get());
+ if (params.enable_quic_persist_server_info) {
+ quic_server_info_factory_.reset(new QuicServerInfoFactoryAdaptor(this));
Ryan Hamilton 2014/03/01 00:38:27 nit: if you wanted to make quic_server_info_factor
ramant (doing other things) 2014/03/01 01:22:22 Done.
+ HttpNetworkSession* session = network_layer_->GetSession();
+ session->quic_stream_factory()->set_quic_server_info_factory(
+ quic_server_info_factory_.get());
+ }
}

Powered by Google App Engine
This is Rietveld 408576698