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

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

Issue 2817603003: Remove ListValue::Append(raw ptr) on Mac and iOS (Closed)
Patch Set: Comments 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
« no previous file with comments | « base/values.cc ('k') | components/policy/core/common/mac_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/mac_util.cc
diff --git a/components/policy/core/common/mac_util.cc b/components/policy/core/common/mac_util.cc
index 911453d517a402d5555de3146b1862442ee4fc0d..7faecd2bb93906dec5407c22e1baef2e37fef6cf 100644
--- a/components/policy/core/common/mac_util.cc
+++ b/components/policy/core/common/mac_util.cc
@@ -40,7 +40,7 @@ void ArrayEntryToValue(const void* value, void* context) {
std::unique_ptr<base::Value> converted =
PropertyToValue(static_cast<CFPropertyListRef>(value));
if (converted)
- static_cast<base::ListValue *>(context)->Append(converted.release());
+ static_cast<base::ListValue*>(context)->Append(std::move(converted));
}
} // namespace
« no previous file with comments | « base/values.cc ('k') | components/policy/core/common/mac_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698