Index: chrome/browser/policy/cloud/component_cloud_policy_store.cc |
diff --git a/chrome/browser/policy/cloud/component_cloud_policy_store.cc b/chrome/browser/policy/cloud/component_cloud_policy_store.cc |
index 20bf9555b51de1095d9e5ef65b306fa333c841f9..3a9c5d63d65b0da01ee57022660b00f39767db86 100644 |
--- a/chrome/browser/policy/cloud/component_cloud_policy_store.cc |
+++ b/chrome/browser/policy/cloud/component_cloud_policy_store.cc |
@@ -322,7 +322,7 @@ bool ComponentCloudPolicyStore::ParsePolicy(const std::string& data, |
if (!dict->GetDictionaryWithoutPathExpansion(it.key(), &description)) |
return false; |
- base::Value* value = NULL; |
+ scoped_ptr<base::Value> value; |
if (!description->RemoveWithoutPathExpansion(kValue, &value)) |
return false; |
@@ -336,7 +336,7 @@ bool ComponentCloudPolicyStore::ParsePolicy(const std::string& data, |
// If policy for components is ever used for device-level settings then |
// this must support a configurable scope; assuming POLICY_SCOPE_USER is |
// fine for now. |
- policy->Set(it.key(), level, POLICY_SCOPE_USER, value, NULL); |
+ policy->Set(it.key(), level, POLICY_SCOPE_USER, value.release(), NULL); |
} |
return true; |