nsCOMPtr<nsIStringBundle> titles = nsnull; nsCOMPtr<nsIStringBundle> data = nsnull; nsCOMPtr<nsILocale> locale = nsnull;
nsresult nsCharsetMenu::CreateBrowserMenu() {  nsresult res = NS_OK;  nsCOMPtr<nsIStringBundle> titles = nsnull;  nsCOMPtr<nsIStringBundle> data = nsnull;  nsCOMPtr<nsILocale> locale = nsnull;  NS_WITH_SERVICE(nsIRDFService, rdfServ, kRDFServiceCID, &res);  if (NS_FAILED(res)) return res;  NS_WITH_SERVICE(nsIStringBundleService, sbServ, kStringBundleServiceCID, &res);  if (NS_FAILED(res)) return res;  res = GetAppLocale(getter_AddRefs(locale));  if (NS_FAILED(res)) return res;  res = sbServ->CreateExtensibleBundle("software/netscape/intl/xuconv/titles/", locale, getter_AddRefs(titles));  if (NS_FAILED(res)) return res;  res = sbServ->CreateExtensibleBundle("software/netscape/intl/xuconv/data/", locale, getter_AddRefs(data));  if (NS_FAILED(res)) return res;  CreateBrowserMoreMenu(rdfServ, titles, data);  CreateBrowserStaticMenu(rdfServ, titles, data);  return NS_OK;}