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

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

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias Created 4 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
Index: components/policy/core/common/mac_util.h
diff --git a/components/policy/core/common/mac_util.h b/components/policy/core/common/mac_util.h
index bafb7b2a851de507b4ad35a5b6f78b1132cd7047..f5b5fb7f7aacc812094714c3baa13d91bd63a8c2 100644
--- a/components/policy/core/common/mac_util.h
+++ b/components/policy/core/common/mac_util.h
@@ -7,7 +7,8 @@
#include <CoreFoundation/CoreFoundation.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "components/policy/policy_export.h"
// This file contains utilities shared by both Mac OS X and iOS.
@@ -24,7 +25,7 @@ namespace policy {
// NSDictionary is toll-free bridged to CFDictionaryRef, which is a
// CFPropertyListRef, so it can also be passed directly here. Same for the
// other NS* classes that map to CF* properties.
-POLICY_EXPORT scoped_ptr<base::Value> PropertyToValue(
+POLICY_EXPORT std::unique_ptr<base::Value> PropertyToValue(
CFPropertyListRef property);
} // namespace policy
« no previous file with comments | « components/policy/core/common/generate_policy_source_unittest.cc ('k') | components/policy/core/common/mac_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698