nsresult rv = NS_OK; for (PRInt32 i=0; i < gProfileDataAccess->mNumOldProfiles; i++) { ProfileStruct* profileItem = (ProfileStruct *) (gProfileDataAccess->m4xProfiles->ElementAt(i)); rv = MigrateProfile(profileItem->profileName.GetUnicode(), PR_FALSE ); if (NS_FAILED(rv)) return rv; }
nsresult rv = NS_OK; for (int i=0; i < g_numOldProfiles; i++) { rv = MigrateProfile(gOldProfiles[i]); if (NS_FAILED(rv)) return rv; }
NS_IMETHODIMP nsProfile::MigrateAllProfiles(){    nsresult rv = NS_OK;    for (PRInt32 i=0; i < gProfileDataAccess->mNumOldProfiles; i++)    {        ProfileStruct* profileItem = (ProfileStruct *)                                     (gProfileDataAccess->m4xProfiles->ElementAt(i));        rv = MigrateProfile(profileItem->profileName.GetUnicode(),                             PR_FALSE /* don't show progress as modal window */);        if (NS_FAILED(rv)) return rv;    }    return rv;}