return NS_OK;
nsresult rv; nsCOMPtr<nsICategoryManager> catman = do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv); if (NS_FAILED(rv)) return rv;  nsCOMPtr<nsISimpleEnumerator> enumerator; rv = catman->EnumerateCategory(aCategory, getter_AddRefs(enumerator)); if (NS_FAILED(rv)) return rv;  PRBool hasMore; while (NS_SUCCEEDED(enumerator->HasMoreElements(&hasMore)) && hasMore) { nsCOMPtr<nsISupports> supports; rv = enumerator->GetNext(getter_AddRefs(supports)); if (NS_FAILED(rv)) continue;  nsCOMPtr<nsISupportsCString> supStr = do_QueryInterface(supports, &rv); if (NS_FAILED(rv)) continue;  nsCAutoString name; rv = supStr->GetData(name); if (NS_FAILED(rv)) continue;  nsCOMPtr<nsIStringBundle> bundle; rv = aBundleService->CreateBundle(name.get(), getter_AddRefs(bundle)); if (NS_FAILED(rv)) continue;  mBundles.AppendObject(bundle); }  return rv;
nsStringBundleService::Init(){  nsCOMPtr<nsIObserverService> os = do_GetService(NS_OBSERVERSERVICE_CONTRACTID);  if (os)    os->AddObserver(this, NS_MEMORY_PRESSURE_TOPIC);  return NS_OK;}