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

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

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « chrome/utility/safe_browsing/mac/udif.cc ('k') | components/policy/core/common/policy_loader_mac.mm » ('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 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;
« no previous file with comments | « chrome/utility/safe_browsing/mac/udif.cc ('k') | components/policy/core/common/policy_loader_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698