mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
bc9f04611f
commit
f15344731a
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user