Index: components/data_use_measurement/core/data_use_network_delegate_unittest.cc |
diff --git a/components/data_use_measurement/core/data_use_network_delegate_unittest.cc b/components/data_use_measurement/core/data_use_network_delegate_unittest.cc |
index 1a259bb01a1f601461195243d1edcc8b56a9fe8c..fda5be088d1aa3d87450c9c172cd0d7fe5ba5dcf 100644 |
--- a/components/data_use_measurement/core/data_use_network_delegate_unittest.cc |
+++ b/components/data_use_measurement/core/data_use_network_delegate_unittest.cc |
@@ -32,7 +32,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( |
@@ -111,7 +112,7 @@ std::unique_ptr<net::URLRequest> RequestURL( |
} 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::DataUseUserData::FOREGROUND)); |
} |