| Index: chrome/installer/setup/setup_util_unittest.cc
|
| diff --git a/chrome/installer/setup/setup_util_unittest.cc b/chrome/installer/setup/setup_util_unittest.cc
|
| index 389cc1e32354f146816aef490c85f9ac46d60e70..647d90f77bf820739a6de01bf207227ca05ab655 100644
|
| --- a/chrome/installer/setup/setup_util_unittest.cc
|
| +++ b/chrome/installer/setup/setup_util_unittest.cc
|
| @@ -55,14 +55,12 @@
|
| // Returns true if the current process' token has privilege |privilege_name|
|
| // enabled.
|
| bool CurrentProcessHasPrivilege(const wchar_t* privilege_name) {
|
| - HANDLE temp_handle;
|
| + base::win::ScopedHandle token;
|
| if (!::OpenProcessToken(::GetCurrentProcess(), TOKEN_QUERY,
|
| - &temp_handle)) {
|
| + token.Receive())) {
|
| ADD_FAILURE();
|
| return false;
|
| }
|
| -
|
| - base::win::ScopedHandle token(temp_handle);
|
|
|
| // First get the size of the buffer needed for |privileges| below.
|
| DWORD size;
|
|
|