Index: components/policy/core/common/policy_loader_win_unittest.cc |
diff --git a/components/policy/core/common/policy_loader_win_unittest.cc b/components/policy/core/common/policy_loader_win_unittest.cc |
index 7ddc783af700c429a13388d6dd43c0695a7e0b8a..1c402e3b6914922748e2c89ca5e8983da53cf6fa 100644 |
--- a/components/policy/core/common/policy_loader_win_unittest.cc |
+++ b/components/policy/core/common/policy_loader_win_unittest.cc |
@@ -805,7 +805,8 @@ TEST_F(PolicyLoaderWinTest, HKLMOverHKCU) { |
.Set(test_keys::kKeyString, |
POLICY_LEVEL_MANDATORY, |
POLICY_SCOPE_MACHINE, |
- base::Value::CreateStringValue("hklm"), NULL); |
+ new base::StringValue("hklm"), |
+ NULL); |
EXPECT_TRUE(Matches(expected)); |
} |
@@ -855,15 +856,26 @@ TEST_F(PolicyLoaderWinTest, Merge3rdPartyPolicies) { |
PolicyBundle expected; |
PolicyMap& expected_policy = expected.Get(ns); |
- expected_policy.Set("a", POLICY_LEVEL_MANDATORY, POLICY_SCOPE_MACHINE, |
- base::Value::CreateStringValue(kMachineMandatory), NULL); |
- expected_policy.Set("b", POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER, |
- base::Value::CreateStringValue(kUserMandatory), NULL); |
- expected_policy.Set("c", POLICY_LEVEL_RECOMMENDED, POLICY_SCOPE_MACHINE, |
- base::Value::CreateStringValue(kMachineRecommended), |
+ expected_policy.Set("a", |
+ POLICY_LEVEL_MANDATORY, |
+ POLICY_SCOPE_MACHINE, |
+ new base::StringValue(kMachineMandatory), |
+ NULL); |
+ expected_policy.Set("b", |
+ POLICY_LEVEL_MANDATORY, |
+ POLICY_SCOPE_USER, |
+ new base::StringValue(kUserMandatory), |
+ NULL); |
+ expected_policy.Set("c", |
+ POLICY_LEVEL_RECOMMENDED, |
+ POLICY_SCOPE_MACHINE, |
+ new base::StringValue(kMachineRecommended), |
+ NULL); |
+ expected_policy.Set("d", |
+ POLICY_LEVEL_RECOMMENDED, |
+ POLICY_SCOPE_USER, |
+ new base::StringValue(kUserRecommended), |
NULL); |
- expected_policy.Set("d", POLICY_LEVEL_RECOMMENDED, POLICY_SCOPE_USER, |
- base::Value::CreateStringValue(kUserRecommended), NULL); |
EXPECT_TRUE(Matches(expected)); |
} |