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

Unified Diff: sandbox/mac/os_compatibility.cc

Issue 1849323003: Convert //sandbox to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup nonsfi_sandbox_unittest.cc 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
« no previous file with comments | « sandbox/mac/os_compatibility.h ('k') | sandbox/mac/xpc_message_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/os_compatibility.cc
diff --git a/sandbox/mac/os_compatibility.cc b/sandbox/mac/os_compatibility.cc
index 1ec0e3afa8493bd1d79ec3b416ed3b4d95f35a5a..538efef9b90ac52f09a701c66fb6dda17b6acae1 100644
--- a/sandbox/mac/os_compatibility.cc
+++ b/sandbox/mac/os_compatibility.cc
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "base/mac/mac_util.h"
+#include "base/memory/ptr_util.h"
#include "sandbox/mac/xpc.h"
namespace sandbox {
@@ -179,11 +180,11 @@ class OSCompatibility_10_10 : public OSCompatibility {
} // namespace
// static
-scoped_ptr<OSCompatibility> OSCompatibility::CreateForPlatform() {
+std::unique_ptr<OSCompatibility> OSCompatibility::CreateForPlatform() {
if (base::mac::IsOSLionOrLater() && base::mac::IsOSMavericksOrEarlier())
- return make_scoped_ptr(new OSCompatibility_10_7());
+ return base::WrapUnique(new OSCompatibility_10_7());
else
- return make_scoped_ptr(new OSCompatibility_10_10());
+ return base::WrapUnique(new OSCompatibility_10_10());
}
OSCompatibility::~OSCompatibility() {}
« no previous file with comments | « sandbox/mac/os_compatibility.h ('k') | sandbox/mac/xpc_message_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698