nsresult res;
NS_TIMELINE_START_TIMER("nsCharsetMenu:SetCurrentMailCharset"); nsresult res = NS_OK;
NS_IMETHODIMP nsCharsetMenu::SetCurrentMailCharset(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;  res = AddCharsetToCache(ccMan, atom, &mMailviewMenu,     kNC_MailviewCharsetMenuRoot, mMailviewCacheStart, mMailviewCacheSize,	mMailviewMenuRDFPosition);  if (NS_FAILED(res)) return res;  res = WriteCacheToPrefs(&mMailviewMenu, mMailviewCacheStart,     kMailviewCachePrefKey);  return res;}