Index: components/data_use_measurement/core/data_use_measurement_unittest.cc |
diff --git a/components/data_use_measurement/core/data_use_measurement_unittest.cc b/components/data_use_measurement/core/data_use_measurement_unittest.cc |
index 87ce637a5e4f0399a0f0c054c81bdf1005455106..29de9e1bb84558c2590e3def8195001c59aaf5c0 100644 |
--- a/components/data_use_measurement/core/data_use_measurement_unittest.cc |
+++ b/components/data_use_measurement/core/data_use_measurement_unittest.cc |
@@ -43,7 +43,8 @@ class TestURLRequestClassifier : public base::SupportsUserData::Data, |
} |
static void MarkAsUserRequest(net::URLRequest* request) { |
- request->SetUserData(kUserDataKey, new TestURLRequestClassifier()); |
+ request->SetUserData(kUserDataKey, |
+ base::MakeUnique<TestURLRequestClassifier>()); |
} |
DataUseUserData::DataUseContentType GetContentType( |
@@ -142,7 +143,7 @@ class DataUseMeasurementTest : public testing::Test { |
} else { |
request->SetUserData( |
data_use_measurement::DataUseUserData::kUserDataKey, |
- new data_use_measurement::DataUseUserData( |
+ base::MakeUnique<data_use_measurement::DataUseUserData>( |
data_use_measurement::DataUseUserData::SUGGESTIONS, |
data_use_measurement_.CurrentAppState())); |
} |