| Index: rlz/win/lib/machine_id_win.cc
|
| diff --git a/rlz/win/lib/machine_id_win.cc b/rlz/win/lib/machine_id_win.cc
|
| index 518c0da9cc9765e3cfa9d4e33a87e0c99d20cc3e..6c1f428b05e945cd55228130ab79f617d222b4c1 100644
|
| --- a/rlz/win/lib/machine_id_win.cc
|
| +++ b/rlz/win/lib/machine_id_win.cc
|
| @@ -4,10 +4,11 @@
|
|
|
| #include <windows.h>
|
| #include <Sddl.h> // For ConvertSidToStringSidW.
|
| +
|
| +#include <memory>
|
| #include <string>
|
|
|
| #include "base/macros.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "base/strings/string16.h"
|
| #include "rlz/lib/assert.h"
|
|
|
| @@ -42,7 +43,7 @@ bool GetSystemVolumeSerialNumber(int* number) {
|
| bool GetComputerSid(const wchar_t* account_name, SID* sid, DWORD sid_size) {
|
| static const DWORD kStartDomainLength = 128; // reasonable to start with
|
|
|
| - scoped_ptr<wchar_t[]> domain_buffer(new wchar_t[kStartDomainLength]);
|
| + std::unique_ptr<wchar_t[]> domain_buffer(new wchar_t[kStartDomainLength]);
|
| DWORD domain_size = kStartDomainLength;
|
| DWORD sid_dword_size = sid_size;
|
| SID_NAME_USE sid_name_use;
|
|
|