Bug 1116555 - Remove the code to handle shutdown-cleanse from the cookie service; r=mcmanus

shutdown-cleanse has not been a thing for quite a while.
This commit is contained in:
Ehsan Akhgari 2014-12-30 14:25:51 -05:00
parent fa1f2eb4ab
commit 3dbef5fefb

View File

@ -1551,11 +1551,6 @@ nsCookieService::Observe(nsISupports *aSubject,
if (!strcmp(aTopic, "profile-before-change")) {
// The profile is about to change,
// or is going away because the application is shutting down.
if (mDBState && mDBState->dbConn &&
!nsCRT::strcmp(aData, MOZ_UTF16("shutdown-cleanse"))) {
// Clear the cookie db if we're in the default DBState.
RemoveAll();
}
// Close the default DB connection and null out our DBStates before
// changing.