Place chicken, sweet potatoes, mushroom, shallots, garlic, wine, rosemary, salt and pepper in a 6 quart slow cooker; stir to combine. Put the lid on and cook on low until the potatoes are tender, about 5 hours. Before serving, remove bones from the chicken, if desired, and stir in vinegar.