si_OkToSave(const char *passwordRealm, const nsString& userName, nsIDOMWindowInternal* window) {
si_OkToSave(const char *passwordRealm, const char *legacyRealm, const nsString& userName, nsIDOMWindowInternal* window) {
si_OkToSave(const char *passwordRealm, const nsString& userName, nsIDOMWindowInternal* window) {  /* if url/user already exists, then it is safe to save it again */  if (si_CheckForUser(passwordRealm, userName)) {    return PR_TRUE;  }#ifdef WALLET_PASSWORDMANAGER_DEFAULT_IS_OFF  if (!si_RememberSignons && !si_GetNotificationPref()) {    PRUnichar * notification = Wallet_Localize("PasswordNotification");    si_SetNotificationPref(PR_TRUE);    if (!si_ConfirmYN(notification, window)) {      Recycle(notification);      SI_SetBoolPref(pref_rememberSignons, PR_FALSE);      return PR_FALSE;    }    Recycle(notification);    SI_SetBoolPref(pref_rememberSignons, PR_TRUE);  }#endif  if (si_CheckForReject(passwordRealm, userName)) {    return PR_FALSE;  }  PRUnichar * message;  if (SI_GetBoolPref(pref_Crypto, PR_FALSE)) {    message = Wallet_Localize("WantToSavePasswordEncrypted?");  } else {    message = Wallet_Localize("WantToSavePasswordObscured?");  }  PRInt32 button = si_3ButtonConfirm(message, window);  if (button == NEVER_BUTTON) {    si_PutReject(passwordRealm, userName, PR_TRUE);  }  Recycle(message);  return (button == YES_BUTTON);}