return AddCharsetToCache(ccMan, atom, &mBrowserMenu, kNC_BrowserCharsetMenuRoot);
res = AddCharsetToCache(ccMan, atom, &mBrowserMenu, kNC_BrowserCharsetMenuRoot); if (NS_FAILED(res)) return res;    char * prefKey = "intl.charsetmenu.browser.cache"; res = WriteCacheToPrefs(&mBrowserMenu, mBrowserCacheStart, prefKey); return res;
NS_IMETHODIMP nsCharsetMenu::SetCurrentCharset(const PRUnichar * aCharset){  nsresult res;  NS_WITH_SERVICE(nsICharsetConverterManager2, ccMan, kCharsetConverterManagerCID, &res);  if (NS_FAILED(res)) return res;  nsCOMPtr<nsIAtom> atom;  res = ccMan->GetCharsetAtom(aCharset, getter_AddRefs(atom));  if (NS_FAILED(res)) return res;  return AddCharsetToCache(ccMan, atom, &mBrowserMenu, kNC_BrowserCharsetMenuRoot);}