Index: components/policy/core/browser/configuration_policy_pref_store_unittest.cc |
diff --git a/components/policy/core/browser/configuration_policy_pref_store_unittest.cc b/components/policy/core/browser/configuration_policy_pref_store_unittest.cc |
index b00b46ffa2a640cdcd05acb39efc4522db62505c..14d71c655e5de9e1dee59f7ec3e9ac233f91c5b5 100644 |
--- a/components/policy/core/browser/configuration_policy_pref_store_unittest.cc |
+++ b/components/policy/core/browser/configuration_policy_pref_store_unittest.cc |
@@ -57,8 +57,8 @@ TEST_F(ConfigurationPolicyPrefStoreListTest, GetDefault) { |
TEST_F(ConfigurationPolicyPrefStoreListTest, SetValue) { |
std::unique_ptr<base::ListValue> in_value(new base::ListValue()); |
- in_value->Append(new base::StringValue("test1")); |
- in_value->Append(new base::StringValue("test2,")); |
+ in_value->AppendString("test1"); |
+ in_value->AppendString("test2,"); |
PolicyMap policy; |
policy.Set(kTestPolicy, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER, |
POLICY_SOURCE_CLOUD, in_value->CreateDeepCopy(), nullptr); |