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 8aa47d8a57fe16949648f0df278d5d4f7a298916..641f625974aba96811bc24520ff13e61fd2b7c3c 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 |
@@ -54,13 +54,13 @@ namespace data_reduction_proxy { |
class DataReductionProxyIODataTest : public testing::Test { |
public: |
void SetUp() override { |
- DataReductionProxyParams* params = |
- new TestDataReductionProxyParams( |
- TestDataReductionProxyParams::kAllowed, |
- TestDataReductionProxyParams::HAS_EVERYTHING & |
+ scoped_ptr<TestDataReductionProxyParams> params; |
+ params.reset(new TestDataReductionProxyParams( |
+ TestDataReductionProxyParams::kAllowed, |
+ TestDataReductionProxyParams::HAS_EVERYTHING & |
~TestDataReductionProxyParams::HAS_DEV_ORIGIN & |
- ~TestDataReductionProxyParams::HAS_DEV_FALLBACK_ORIGIN); |
- settings_.reset(new DataReductionProxySettings(params)); |
+ ~TestDataReductionProxyParams::HAS_DEV_FALLBACK_ORIGIN)); |
+ settings_.reset(new DataReductionProxySettings(params.Pass())); |
RegisterSimpleProfilePrefs(prefs_.registry()); |
} |