99163 - removing nsObserverService.h includes. Also fixing 106090, extra methods on nsObserverService. r=shaver@mozilla.org, sr=jband@netscape.com

git-svn-id: svn://10.0.0.236/trunk@105973 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2001-10-22 22:01:27 +00:00
parent 1403ab79f6
commit fa2d0b7e98
69 changed files with 115 additions and 182 deletions

View File

@@ -43,7 +43,6 @@
#include "nsCRT.h"
#include "nsIObserverService.h"
#include "nsObserverService.h"
#include "nsITimelineService.h"
@@ -682,7 +681,7 @@ nsNativeComponentLoader::AutoUnregisterComponent(PRInt32 when,
// Notify observers, if any, of autoregistration work
nsCOMPtr<nsIObserverService> observerService =
do_GetService(NS_OBSERVERSERVICE_CONTRACTID, &rv);
do_GetService("@mozilla.org/observer-service;1", &rv);
if (NS_SUCCEEDED(rv))
{
nsCOMPtr<nsIServiceManager> mgr;
@@ -839,7 +838,7 @@ nsNativeComponentLoader::AutoRegisterComponent(PRInt32 when,
// Notify observers, if any, of autoregistration work
nsCOMPtr<nsIObserverService> observerService =
do_GetService(NS_OBSERVERSERVICE_CONTRACTID, &rv);
do_GetService("@mozilla.org/observer-service;1", &rv);
if (NS_SUCCEEDED(rv))
{
nsCOMPtr<nsIServiceManager> mgr;