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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover.cc

Issue 255783002: QUIC - Minor clean up of QUIC Server Info memory cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed wtc's comments in Patch Set 2 Created 6 years, 8 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 | « no previous file | net/quic/crypto/quic_crypto_client_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_remover.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover.cc b/chrome/browser/browsing_data/browsing_data_remover.cc
index 1e39f5819e3611aab2b4b0260331ad12ce5e6ba8..b7b4299fa4b4e7d50d597fab3f872b5f24336e8f 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover.cc
@@ -899,16 +899,16 @@ void BrowsingDataRemover::DoClearCache(int rv) {
(next_cache_state_ == STATE_CREATE_MAIN)
? main_context_getter_.get()
: media_context_getter_.get();
- net::HttpTransactionFactory* factory =
- getter->GetURLRequestContext()->http_transaction_factory();
-
- // Clear QUIC server information from memory.
- net::HttpCache* http_cache = factory->GetCache();
- http_cache->GetSession()->quic_stream_factory()->ClearCachedStates();
+ net::HttpCache* http_cache =
+ getter->GetURLRequestContext()->http_transaction_factory()->
+ GetCache();
next_cache_state_ = (next_cache_state_ == STATE_CREATE_MAIN) ?
STATE_DELETE_MAIN : STATE_DELETE_MEDIA;
+ // Clear QUIC server information from memory and the disk cache.
+ http_cache->GetSession()->quic_stream_factory()->
+ ClearCachedStatesInCryptoConfig();
rv = http_cache->GetBackend(
&cache_, base::Bind(&BrowsingDataRemover::DoClearCache,
base::Unretained(this)));
« no previous file with comments | « no previous file | net/quic/crypto/quic_crypto_client_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698