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

Unified Diff: components/browsing_data/storage_partition_http_cache_data_remover.cc

Issue 2097043002: Clear HTTP auth data on clearing browsing data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete within time period + delete with cookies and passwords Created 4 years, 6 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: components/browsing_data/storage_partition_http_cache_data_remover.cc
diff --git a/components/browsing_data/storage_partition_http_cache_data_remover.cc b/components/browsing_data/storage_partition_http_cache_data_remover.cc
index fabde8efbcfce6ca2636db93fa7c009b449be9de..cdca65cfab61148eb385c341f60c39e0d8d38ccd 100644
--- a/components/browsing_data/storage_partition_http_cache_data_remover.cc
+++ b/components/browsing_data/storage_partition_http_cache_data_remover.cc
@@ -152,6 +152,13 @@ void StoragePartitionHttpCacheDataRemover::DoClearCache(int rv) {
? STATE_PROCESS_MAIN
: STATE_PROCESS_MEDIA;
+ // Clear HTTP auth data.
+ net::HttpNetworkSession* http_session = getter->GetURLRequestContext()
+ ->http_transaction_factory()
+ ->GetSession();
+ if (http_session)
+ http_session->http_auth_cache()->Clear(delete_begin_, delete_end_);
+
// Clear QUIC server information from memory and the disk cache.
http_cache->GetSession()
->quic_stream_factory()

Powered by Google App Engine
This is Rietveld 408576698