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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 1484143003: Clear the HTTP auth state when clearing cookies or cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 6a68c08b8c0851fffb3f17d96fceb2aa496c40ff..67cee9afb4ba924ca7576936bdefa4c37678e462 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -784,9 +784,13 @@ void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread(
DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(initialized());
+ // Synchronous deletion.
DCHECK(transport_security_state());
- // Completes synchronously.
transport_security_state()->DeleteAllDynamicDataSince(time);
+ DCHECK(http_network_session_.get());
+ http_network_session_->http_auth_cache()->Clear();
mmenke 2015/12/01 15:59:48 I don't think it makes much sense to clear auth in
msramek 2015/12/01 16:26:04 Ok, I'll look into it! (I'm not very familiar with
asanka 2015/12/01 17:51:10 Also, this is meant to delete state since |time|.
+
+ // Asynchronous deletion, calls the |completion| callback when finished.
DCHECK(http_server_properties_manager_);
http_server_properties_manager_->Clear(completion);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698