nsAutoString topic; topic.AssignWithConversion(NS_XPCOM_SHUTDOWN_OBSERVER_ID); observerService->AddObserver(this, topic.get());
observerService->AddObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, PR_FALSE);
nsDOMSOFactory::nsDOMSOFactory(){  NS_INIT_REFCNT();  nsCOMPtr<nsIObserverService> observerService =    do_GetService(NS_OBSERVERSERVICE_CONTRACTID);  if (observerService) {    nsAutoString topic;    topic.AssignWithConversion(NS_XPCOM_SHUTDOWN_OBSERVER_ID);    observerService->AddObserver(this, topic.get());  }}