Bug 1116551 - Remove the code to handle shutdown-cleanse from the prefs service; r=bsmedberg

shutdown-cleanse has not been a thing for quite a while.
This commit is contained in:
Ehsan Akhgari 2014-12-30 14:17:35 -05:00
parent bc9f04611f
commit f15344731a

View File

@ -587,14 +587,7 @@ Preferences::Observe(nsISupports *aSubject, const char *aTopic,
nsresult rv = NS_OK;
if (!nsCRT::strcmp(aTopic, "profile-before-change")) {
if (!nsCRT::strcmp(someData, MOZ_UTF16("shutdown-cleanse"))) {
if (mCurrentFile) {
mCurrentFile->Remove(false);
mCurrentFile = nullptr;
}
} else {
rv = SavePrefFile(nullptr);
}
rv = SavePrefFile(nullptr);
} else if (!strcmp(aTopic, "load-extension-defaults")) {
pref_LoadPrefsInDirList(NS_EXT_PREFS_DEFAULTS_DIR_LIST);
} else if (!nsCRT::strcmp(aTopic, "reload-default-prefs")) {