nsresult rv; nsCOMPtr<nsICategoryManager> categoryManager(do_GetService("@mozilla.org/categorymanager;1", &rv)); if (NS_SUCCEEDED(rv)) { rv = categoryManager->DeleteCategoryEntry("parser-service-category", NS_META_CHARSET_CONTRACTID, PR_TRUE); } return rv;
return DeleteCategoryEntry("parser-service-category", "Meta Charset Service");
static NS_METHOD nsMetaCharsetObserverUnegistrationProc(nsIComponentManager *aCompMgr,                                                        nsIFile *aPath,                                                        const char *registryLocation,                                                        const nsModuleComponentInfo *info){  nsresult rv;  nsCOMPtr<nsICategoryManager>     categoryManager(do_GetService("@mozilla.org/categorymanager;1", &rv));  if (NS_SUCCEEDED(rv)) {    rv = categoryManager->DeleteCategoryEntry("parser-service-category",                                               NS_META_CHARSET_CONTRACTID,                                              PR_TRUE);  }  return rv;}