Bug 148192 – Remove session-logout code from networking

p=sgautherie r/sr=cbiesinger
This commit is contained in:
Serge Gautherie 2008-08-01 22:38:16 +01:00
Родитель fa4e4f8635
Коммит 0054b33909
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -281,7 +281,6 @@ nsHttpHandler::Init()
if (mObserverService) {
mObserverService->AddObserver(this, "profile-change-net-teardown", PR_TRUE);
mObserverService->AddObserver(this, "profile-change-net-restore", PR_TRUE);
mObserverService->AddObserver(this, "session-logout", PR_TRUE);
mObserverService->AddObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, PR_TRUE);
}
@ -1710,14 +1709,6 @@ nsHttpHandler::Observe(nsISupports *subject,
// depend on this value.
mSessionStartTime = NowInSeconds();
}
else if (strcmp(topic, "session-logout") == 0) {
// clear cache of all authentication credentials.
mAuthCache.ClearAll();
// need to reset the session start time since cache validation may
// depend on this value.
mSessionStartTime = NowInSeconds();
}
else if (strcmp(topic, "profile-change-net-restore") == 0) {
// initialize connection manager
InitConnectionMgr();