mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Observe shutdown too. Bug 336922 followup, r=mconnor, sr=darin, branch181=mconnor
This commit is contained in:
parent
ceabbc4225
commit
bd6023522d
@ -180,6 +180,7 @@ MicrosummaryService.prototype = {
|
||||
//if (!this.interfaces.some( function(v) { return iid.equals(v) } ))
|
||||
if (!iid.equals(Ci.nsIMicrosummaryService) &&
|
||||
!iid.equals(Ci.nsIObserver) &&
|
||||
!iid.equals(Ci.nsISupportsWeakReference) &&
|
||||
!iid.equals(Ci.nsISupports))
|
||||
throw Components.results.NS_ERROR_NO_INTERFACE;
|
||||
return this;
|
||||
@ -197,6 +198,7 @@ MicrosummaryService.prototype = {
|
||||
var obs = Cc["@mozilla.org/observer-service;1"].
|
||||
getService(Ci.nsIObserverService);
|
||||
obs.addObserver(this, "profile-after-change", false);
|
||||
obs.addObserver(this, "xpcom-shutdown", true);
|
||||
break;
|
||||
case "profile-after-change":
|
||||
var obs = Cc["@mozilla.org/observer-service;1"].
|
||||
|
Loading…
Reference in New Issue
Block a user