Make FieldTrialList usable after clearing VariationsParamsManager.

Calling |ClearAllVariationParams| will now create a new instance of the
FieldTrialList so |SetVariationParamsWithFeatureAssociations| will
work again.

BUG=672010

Review-Url: https://codereview.chromium.org/2590883002
Cr-Commit-Position: refs/heads/master@{#439824}
diff --git a/components/variations/variations_params_manager.cc b/components/variations/variations_params_manager.cc
index e4b92cc..4d90a10 100644
--- a/components/variations/variations_params_manager.cc
+++ b/components/variations/variations_params_manager.cc
@@ -86,6 +86,9 @@
   // When the scoped feature list is destroyed, it puts back the original
   // feature list that was there when InitWithFeatureList() was called.
   scoped_feature_list_.reset(new base::test::ScopedFeatureList());
+  // Ensure the destructor is called properly, so it can be freshly recreated.
+  field_trial_list_.reset();
+  field_trial_list_ = base::MakeUnique<base::FieldTrialList>(nullptr);
 }
 
 }  // namespace testing