Blanch the bacon by boiling it in water for 10 minutes.
Drain and pat it dry.
Cut it into small pieces.
In a large pot, heat olive oil over medium heat and cook the bacon until crispy.
Remove and set aside.
Add chicken pieces to the pot, season with salt and pepper, and brown on all sides.
Add sliced onion to the pot and cook until soft.
Pour in the red wine and chicken broth.
Stir in tomato paste, minced garlic, bay leaf, and thyme.
Add back the bacon.
Cover the pot and simmer for 30 minutes.
In a separate pan, sauté the mushrooms in butter until cooked.
Add the mushrooms and pearl onions to the pot.
Mix flour with some of the cooking liquid from the pot to make a slurry.
Stir the slurry back into the pot to thicken the sauce.
Cook for another 15 minutes.