NS_WITH_SERVICE(nsIObserverService, anObserverService, NS_OBSERVERSERVICE_CONTRACTID, &res); if (NS_FAILED(res)) return res;  nsAutoString htmlTopic; htmlTopic.AssignWithConversion(kHTMLTextContentType); return anObserverService->RemoveObserver(this, htmlTopic.GetUnicode());
nsCOMPtr<nsIParserService> parserService(do_GetService(kParserServiceCID, &rv));  if (NS_FAILED(rv)) return rv;  rv = parserService->UnregisterObserver(this, NS_LITERAL_STRING("text/html")); } return rv;
NS_IMETHODIMP nsMetaCharsetObserver::End() {    nsresult res = NS_OK;    NS_WITH_SERVICE(nsIObserverService, anObserverService, NS_OBSERVERSERVICE_CONTRACTID, &res);    if (NS_FAILED(res)) return res;         nsAutoString htmlTopic; htmlTopic.AssignWithConversion(kHTMLTextContentType);    return anObserverService->RemoveObserver(this, htmlTopic.GetUnicode());}