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

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

Issue 2911033002: Remove raw base::DictionaryValue::Set (Closed)
Patch Set: Proper Windows Fix Created 3 years, 6 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/mac_util.cc
diff --git a/components/policy/core/common/mac_util.cc b/components/policy/core/common/mac_util.cc
index 7faecd2bb93906dec5407c22e1baef2e37fef6cf..e213d08ba3e967af87dbe72a4def85aee9a6212c 100644
--- a/components/policy/core/common/mac_util.cc
+++ b/components/policy/core/common/mac_util.cc
@@ -27,8 +27,8 @@ void DictionaryEntryToValue(const void* key, const void* value, void* context) {
PropertyToValue(static_cast<CFPropertyListRef>(value));
if (converted) {
const std::string string = base::SysCFStringRefToUTF8(cf_key);
- static_cast<base::DictionaryValue*>(context)->Set(
- string, converted.release());
+ static_cast<base::DictionaryValue*>(context)->Set(string,
+ std::move(converted));
}
}
}
« no previous file with comments | « components/cloud_devices/common/description_items_inl.h ('k') | components/policy/core/common/policy_loader_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698