Index: sandbox/win/src/window.cc |
diff --git a/sandbox/win/src/window.cc b/sandbox/win/src/window.cc |
index cfbf280d9cf2d563f7840765668f99a1a6ad0264..6a8730283ac5d4c0a2e819f81d13a0c319e33aaa 100644 |
--- a/sandbox/win/src/window.cc |
+++ b/sandbox/win/src/window.cc |
@@ -6,8 +6,9 @@ |
#include <aclapi.h> |
+#include <memory> |
+ |
#include "base/logging.h" |
-#include "base/memory/scoped_ptr.h" |
#include "sandbox/win/src/acl.h" |
#include "sandbox/win/src/sid.h" |
@@ -130,7 +131,7 @@ base::string16 GetWindowObjectName(HANDLE handle) { |
} |
// Create the buffer that will hold the name. |
- scoped_ptr<wchar_t[]> name_buffer(new wchar_t[size]); |
+ std::unique_ptr<wchar_t[]> name_buffer(new wchar_t[size]); |
// Query the name of the object. |
if (!::GetUserObjectInformation(handle, UOI_NAME, name_buffer.get(), size, |