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

Unified Diff: base/process/process_info_mac.cc

Issue 168643002: Convert scoped_ptr_malloc -> scoped_ptr, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « base/process/launch_posix.cc ('k') | base/task_runner_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_info_mac.cc
diff --git a/base/process/process_info_mac.cc b/base/process/process_info_mac.cc
index ab8394b891d65a7ae032201b18f41ea43692a876..b7cfdceda0505bd9306b4f02d5d28df76cb48a5e 100644
--- a/base/process/process_info_mac.cc
+++ b/base/process/process_info_mac.cc
@@ -21,7 +21,7 @@ const Time CurrentProcessInfo::CreationTime() {
if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0)
return Time();
- scoped_ptr_malloc<struct kinfo_proc>
+ scoped_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();
« no previous file with comments | « base/process/launch_posix.cc ('k') | base/task_runner_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698