Index: components/policy/core/common/policy_test_utils.cc |
diff --git a/components/policy/core/common/policy_test_utils.cc b/components/policy/core/common/policy_test_utils.cc |
index fcf89f92de80c7582215cf69adf5d787707bf6a0..038eb5e936bd2b6fc081523f122a45e211f6cdad 100644 |
--- a/components/policy/core/common/policy_test_utils.cc |
+++ b/components/policy/core/common/policy_test_utils.cc |
@@ -48,7 +48,8 @@ bool PolicyServiceIsEmpty(const PolicyService* service) { |
if (!map.empty()) { |
base::DictionaryValue dict; |
for (PolicyMap::const_iterator it = map.begin(); it != map.end(); ++it) |
- dict.SetWithoutPathExpansion(it->first, it->second.value->DeepCopy()); |
+ dict.SetWithoutPathExpansion(it->first, |
+ it->second.value->CreateDeepCopy()); |
LOG(WARNING) << "There are pre-existing policies in this machine: " << dict; |
} |
return map.empty(); |