зеркало из https://github.com/mozilla/pjs.git
Fix for bug 148191. Remove now obsolete references to 'session-logout'. r=morse, sr= alecf.
This commit is contained in:
Родитель
7fc5a0ea7e
Коммит
9c92a83f10
|
@ -148,9 +148,6 @@ nsresult nsPrefService::Init()
|
|||
rv = observerService->AddObserver(this, "profile-before-change", PR_TRUE);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = observerService->AddObserver(this, "profile-do-change", PR_TRUE);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = observerService->AddObserver(this, "session-logout", PR_TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
return(rv);
|
||||
|
@ -172,8 +169,6 @@ NS_IMETHODIMP nsPrefService::Observe(nsISupports *aSubject, const char *aTopic,
|
|||
} else if (!nsCRT::strcmp(aTopic, "profile-do-change")) {
|
||||
ResetUserPrefs();
|
||||
rv = ReadUserPrefs(nsnull);
|
||||
} else if (!nsCRT::strcmp(aTopic, "session-logout")) {
|
||||
rv = SavePrefFile(nsnull);
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче