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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc

Issue 2252113004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
index 7367069cabca08581f4eb422759f3c8f0ab3cc7a..07534a52a597f8c3259f491bde71bc9c2ee18d36 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
@@ -137,8 +137,8 @@ TEST_F(DataReductionProxyIODataTest, TestConstruction) {
// Creating a second delegate with bypass statistics tracking should result
// in usage stats being created.
- io_data->CreateNetworkDelegate(
- base::WrapUnique(new CountingNetworkDelegate()), true);
+ io_data->CreateNetworkDelegate(base::MakeUnique<CountingNetworkDelegate>(),
+ true);
EXPECT_NE(nullptr, io_data->bypass_stats());
io_data->ShutdownOnUIThread();

Powered by Google App Engine
This is Rietveld 408576698