Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: components/network_time/network_time_tracker_unittest.cc

Issue 2358723002: Convert FieldTrialList to Accept a std::unique_ptr (Closed)
Patch Set: Change Comment nullptr to null Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/network_time/network_time_tracker_unittest.cc
diff --git a/components/network_time/network_time_tracker_unittest.cc b/components/network_time/network_time_tracker_unittest.cc
index 93ed60a188a9ea772aed4c77fa332dacbd4973a2..401839a06f94c1d103b9e8481fc28b78d2ce3306 100644
--- a/components/network_time/network_time_tracker_unittest.cc
+++ b/components/network_time/network_time_tracker_unittest.cc
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/feature_list.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
@@ -204,7 +205,8 @@ class NetworkTimeTrackerTest : public testing::Test {
field_trial_list_.reset(); // Averts a CHECK fail in constructor below.
field_trial_list_.reset(
- new base::FieldTrialList(new base::MockEntropyProvider()));
+ new base::FieldTrialList(
+ base::MakeUnique<base::MockEntropyProvider>()));
// refcounted, and reference held by field_trial_list_.
base::FieldTrial* trial = base::FieldTrialList::FactoryGetFieldTrial(
kTrialName, 100, kGroupName, 1971, 1, 1,

Powered by Google App Engine
This is Rietveld 408576698