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

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: Fixed rch's comments from Patch set 1 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698