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

Unified Diff: base/process/process_info_win.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/process/process_info_mac.cc ('k') | base/process/process_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_info_win.cc
diff --git a/base/process/process_info_win.cc b/base/process/process_info_win.cc
index bd9e0702c3db300a1de3e8cd7d16fbb177fa6b3a..9c2843bbda683bcd7fab771559405503aa39b2ae 100644
--- a/base/process/process_info_win.cc
+++ b/base/process/process_info_win.cc
@@ -6,7 +6,8 @@
#include <windows.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/time/time.h"
#include "base/win/scoped_handle.h"
#include "base/win/windows_version.h"
@@ -44,7 +45,7 @@ IntegrityLevel GetCurrentProcessIntegrityLevel() {
return INTEGRITY_UNKNOWN;
}
- scoped_ptr<char[]> token_label_bytes(new char[token_info_length]);
+ std::unique_ptr<char[]> token_label_bytes(new char[token_info_length]);
if (!token_label_bytes.get())
return INTEGRITY_UNKNOWN;
« no previous file with comments | « base/process/process_info_mac.cc ('k') | base/process/process_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698