Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: components/policy/core/common/policy_test_utils.cc

Issue 2843813002: Remove SetWithoutPathExpansion (Closed)
Patch Set: Fix CrOS Error Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « components/content_settings/core/browser/content_settings_pref.cc ('k') | components/policy/core/common/registry_dict.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698