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 eb3977896002d8e200c8bc3911c49b662f9881c1..f5b4cebc5492d03ec78f44a299e542e2e456f451 100644 |
--- a/components/policy/core/common/mac_util.cc |
+++ b/components/policy/core/common/mac_util.cc |
@@ -5,6 +5,7 @@ |
#include "components/policy/core/common/mac_util.h" |
#include <string> |
+#include <utility> |
#include "base/mac/foundation_util.h" |
#include "base/strings/sys_string_conversions.h" |
@@ -77,7 +78,7 @@ scoped_ptr<base::Value> PropertyToValue(CFPropertyListRef property) { |
if (CFDictionaryRef dict = CFCast<CFDictionaryRef>(property)) { |
scoped_ptr<base::DictionaryValue> dict_value(new base::DictionaryValue()); |
CFDictionaryApplyFunction(dict, DictionaryEntryToValue, dict_value.get()); |
- return dict_value.Pass(); |
+ return std::move(dict_value); |
} |
if (CFArrayRef array = CFCast<CFArrayRef>(property)) { |
@@ -86,7 +87,7 @@ scoped_ptr<base::Value> PropertyToValue(CFPropertyListRef property) { |
CFRangeMake(0, CFArrayGetCount(array)), |
ArrayEntryToValue, |
list_value.get()); |
- return list_value.Pass(); |
+ return std::move(list_value); |
} |
return nullptr; |