| Index: components/policy/core/common/proxy_policy_provider_unittest.cc
|
| diff --git a/components/policy/core/common/proxy_policy_provider_unittest.cc b/components/policy/core/common/proxy_policy_provider_unittest.cc
|
| index 142e353632a3a7485d0704efad7a26f553314b56..76e13fb78f2d6fac07893f9b2f4a3a8d4da67628 100644
|
| --- a/components/policy/core/common/proxy_policy_provider_unittest.cc
|
| +++ b/components/policy/core/common/proxy_policy_provider_unittest.cc
|
| @@ -35,8 +35,8 @@ class ProxyPolicyProviderTest : public testing::Test {
|
| MockConfigurationPolicyProvider mock_provider_;
|
| ProxyPolicyProvider proxy_provider_;
|
|
|
| - static scoped_ptr<PolicyBundle> CopyBundle(const PolicyBundle& bundle) {
|
| - scoped_ptr<PolicyBundle> copy(new PolicyBundle());
|
| + static std::unique_ptr<PolicyBundle> CopyBundle(const PolicyBundle& bundle) {
|
| + std::unique_ptr<PolicyBundle> copy(new PolicyBundle());
|
| copy->CopyFrom(bundle);
|
| return copy;
|
| }
|
| @@ -99,7 +99,8 @@ TEST_F(ProxyPolicyProviderTest, RefreshPolicies) {
|
| Mock::VerifyAndClearExpectations(&mock_provider_);
|
|
|
| EXPECT_CALL(observer_, OnUpdatePolicy(&proxy_provider_));
|
| - mock_provider_.UpdatePolicy(scoped_ptr<PolicyBundle>(new PolicyBundle()));
|
| + mock_provider_.UpdatePolicy(
|
| + std::unique_ptr<PolicyBundle>(new PolicyBundle()));
|
| Mock::VerifyAndClearExpectations(&observer_);
|
| }
|
|
|
|
|