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

This commit is contained in:
dougt%netscape.com 2007-09-06 22:01:09 +00:00
Родитель 8373612e10
Коммит ec31803a28
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -76,7 +76,6 @@
#include "nsIBookmarksService.h"
#include "nsIStringBundle.h"
#include "nsIObserverService.h"
#include "nsObserverService.h"
#include "nsIURL.h"
#include "nsReadableUtils.h"
@ -897,7 +896,7 @@ InternetSearchDataSource::Init()
// Register as a profile change obsevrer
nsCOMPtr<nsIObserverService> observerService =
do_GetService(NS_OBSERVERSERVICE_CONTRACTID, &rv);
do_GetService("@mozilla.org/observer-service;1", &rv);
if (observerService) {
observerService->AddObserver(this, "profile-before-change", PR_TRUE);
observerService->AddObserver(this, "profile-do-change", PR_TRUE);