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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.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_config_test_utils.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc
index 7b55b9be80ce892a9895b5331effc281a18c239f..86dafdfc9d6d256760639c89d83a4af16c2f8770 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc
@@ -33,9 +33,8 @@ TestDataReductionProxyConfig::TestDataReductionProxyConfig(
DataReductionProxyConfigurator* configurator,
DataReductionProxyEventCreator* event_creator)
: TestDataReductionProxyConfig(
- base::WrapUnique(
- new TestDataReductionProxyParams(params_flags,
- params_definitions)),
+ base::MakeUnique<TestDataReductionProxyParams>(params_flags,
+ params_definitions),
io_task_runner,
net_log,
configurator,
@@ -78,8 +77,8 @@ void TestDataReductionProxyConfig::GetNetworkList(
}
void TestDataReductionProxyConfig::ResetParamFlagsForTest(int flags) {
- config_values_ = base::WrapUnique(new TestDataReductionProxyParams(
- flags, TestDataReductionProxyParams::HAS_EVERYTHING));
+ config_values_ = base::MakeUnique<TestDataReductionProxyParams>(
+ flags, TestDataReductionProxyParams::HAS_EVERYTHING);
}
TestDataReductionProxyParams* TestDataReductionProxyConfig::test_params() {

Powered by Google App Engine
This is Rietveld 408576698