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

Unified Diff: base/win/win_util.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
« base/nix/mime_util_xdg.cc ('K') | « base/win/enum_variant.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/win_util.cc
diff --git a/base/win/win_util.cc b/base/win/win_util.cc
index e0d37f2b0f8ba6d62d103a40babb2429f3508feb..875dbadc45935b010ea71e688179f125558fdd79 100644
--- a/base/win/win_util.cc
+++ b/base/win/win_util.cc
@@ -83,7 +83,7 @@ bool GetUserSidString(std::wstring* user_sid) {
base::win::ScopedHandle token_scoped(token);
DWORD size = sizeof(TOKEN_USER) + SECURITY_MAX_SID_SIZE;
- scoped_array<BYTE> user_bytes(new BYTE[size]);
+ scoped_ptr<BYTE[]> user_bytes(new BYTE[size]);
TOKEN_USER* user = reinterpret_cast<TOKEN_USER*>(user_bytes.get());
if (!::GetTokenInformation(token, TokenUser, user, size, &size))
« base/nix/mime_util_xdg.cc ('K') | « base/win/enum_variant.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698