Index: base/process/process_info_mac.cc |
diff --git a/base/process/process_info_mac.cc b/base/process/process_info_mac.cc |
index 7583266eba1312b002b0feff616273ccf6ce9a1a..27b9623d9e486f9990866d83883598543f1193dc 100644 |
--- a/base/process/process_info_mac.cc |
+++ b/base/process/process_info_mac.cc |
@@ -9,9 +9,10 @@ |
#include <sys/time.h> |
#include <unistd.h> |
+#include <memory> |
+ |
#include "base/macros.h" |
#include "base/memory/free_deleter.h" |
-#include "base/memory/scoped_ptr.h" |
#include "base/time/time.h" |
namespace base { |
@@ -23,8 +24,8 @@ const Time CurrentProcessInfo::CreationTime() { |
if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) |
return Time(); |
- scoped_ptr<struct kinfo_proc, base::FreeDeleter> |
- proc(static_cast<struct kinfo_proc*>(malloc(len))); |
+ std::unique_ptr<struct kinfo_proc, base::FreeDeleter> proc( |
+ static_cast<struct kinfo_proc*>(malloc(len))); |
if (sysctl(mib, arraysize(mib), proc.get(), &len, NULL, 0) < 0) |
return Time(); |
return Time::FromTimeVal(proc->kp_proc.p_un.__p_starttime); |