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

Unified Diff: components/policy/core/common/cloud/component_cloud_policy_store.cc

Issue 1940153002: Use std::unique_ptr to express ownership of base::Value in PolicyMap::Entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another-fix Created 4 years, 7 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/cloud/component_cloud_policy_store.cc
diff --git a/components/policy/core/common/cloud/component_cloud_policy_store.cc b/components/policy/core/common/cloud/component_cloud_policy_store.cc
index 5a07ca41d74457a411cb0bd829c0f5dd33ae9cc2..f881398f77bfbc91db1f66e9622f1b8414975fc6 100644
--- a/components/policy/core/common/cloud/component_cloud_policy_store.cc
+++ b/components/policy/core/common/cloud/component_cloud_policy_store.cc
@@ -360,7 +360,7 @@ bool ComponentCloudPolicyStore::ParsePolicy(const std::string& data,
// this must support a configurable scope; assuming POLICY_SCOPE_USER is
// fine for now.
policy->Set(it.key(), level, POLICY_SCOPE_USER, POLICY_SOURCE_CLOUD,
- value.release(), nullptr);
+ std::move(value), nullptr);
}
return true;

Powered by Google App Engine
This is Rietveld 408576698