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

Unified Diff: base/process_util_win.cc

Issue 11961021: base: Convert scoped_arrays to the new scoped_ptr style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert callback changes Created 7 years, 11 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: base/process_util_win.cc
diff --git a/base/process_util_win.cc b/base/process_util_win.cc
index 3addf51b669030ea635ffa28f5cdac7faf5f5675..3ac2ca4de7ba88ef635a755303d56f10392f1344 100644
--- a/base/process_util_win.cc
+++ b/base/process_util_win.cc
@@ -252,7 +252,7 @@ bool GetProcessIntegrityLevel(ProcessHandle process, IntegrityLevel *level) {
GetLastError() != ERROR_INSUFFICIENT_BUFFER)
return false;
- scoped_array<char> token_label_bytes(new char[token_info_length]);
+ scoped_ptr<char[]> token_label_bytes(new char[token_info_length]);
if (!token_label_bytes.get())
return false;
@@ -921,7 +921,7 @@ bool EnableLowFragmentationHeap() {
// Gives us some extra space in the array in case a thread is creating heaps
// at the same time we're querying them.
static const int MARGIN = 8;
- scoped_array<HANDLE> heaps(new HANDLE[number_heaps + MARGIN]);
+ scoped_ptr<HANDLE[]> heaps(new HANDLE[number_heaps + MARGIN]);
number_heaps = GetProcessHeaps(number_heaps + MARGIN, heaps.get());
if (!number_heaps)
return false;

Powered by Google App Engine
This is Rietveld 408576698