Index: components/policy/core/common/schema_unittest.cc |
diff --git a/components/policy/core/common/schema_unittest.cc b/components/policy/core/common/schema_unittest.cc |
index 9b40bad1503e34e3e164b7ea3591b4b199c78bc3..ef4c25eefaf343fc0f129e0871977bc303a6f961 100644 |
--- a/components/policy/core/common/schema_unittest.cc |
+++ b/components/policy/core/common/schema_unittest.cc |
@@ -656,8 +656,8 @@ TEST(SchemaTest, Validate) { |
dict.SetString("one", "string"); |
dict.SetInteger("two", 2); |
base::ListValue list; |
- list.Append(dict.DeepCopy()); |
- list.Append(dict.DeepCopy()); |
+ list.Append(dict.CreateDeepCopy()); |
+ list.Append(dict.CreateDeepCopy()); |
bundle.Set("ArrayOfObjects", list.DeepCopy()); |
} |
@@ -666,8 +666,8 @@ TEST(SchemaTest, Validate) { |
list.AppendString("a string"); |
list.AppendString("another string"); |
base::ListValue listlist; |
- listlist.Append(list.DeepCopy()); |
- listlist.Append(list.DeepCopy()); |
+ listlist.Append(list.CreateDeepCopy()); |
+ listlist.Append(list.CreateDeepCopy()); |
bundle.Set("ArrayOfArray", listlist.DeepCopy()); |
} |