Convert FieldTrialList to Accept a std::unique_ptr
BUG=
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng
Review-Url: https://codereview.chromium.org/2358723002
Cr-Commit-Position: refs/heads/master@{#420118}
diff --git a/components/variations/variations_seed_processor_unittest.cc b/components/variations/variations_seed_processor_unittest.cc
index d1e9967..7703eed 100644
--- a/components/variations/variations_seed_processor_unittest.cc
+++ b/components/variations/variations_seed_processor_unittest.cc
@@ -17,6 +17,7 @@
#include "base/feature_list.h"
#include "base/format_macros.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
@@ -867,11 +868,8 @@
// An entorpy value of 0.1 will cause the AA group to be chosen, since AA is
// the only non-default group, and has a probability percent above 0.1.
- base::MockEntropyProvider* mock_high_entropy_provider =
- new base::MockEntropyProvider(0.1);
-
- // The field trial list takes ownership of the provider.
- base::FieldTrialList field_trial_list(mock_high_entropy_provider);
+ base::FieldTrialList field_trial_list(
+ base::MakeUnique<base::MockEntropyProvider>(0.1));
// Use a stack instance, since nothing takes ownership of this provider.
// This entropy value will cause the default group to be chosen since it's a