| Index: chrome/installer/setup/setup_util.cc
|
| ===================================================================
|
| --- chrome/installer/setup/setup_util.cc (revision 237598)
|
| +++ chrome/installer/setup/setup_util.cc (working copy)
|
| @@ -452,13 +452,11 @@
|
|
|
| ScopedTokenPrivilege::ScopedTokenPrivilege(const wchar_t* privilege_name)
|
| : is_enabled_(false) {
|
| - HANDLE temp_handle;
|
| if (!::OpenProcessToken(::GetCurrentProcess(),
|
| TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY,
|
| - &temp_handle)) {
|
| + token_.Receive())) {
|
| return;
|
| }
|
| - token_.Set(temp_handle);
|
|
|
| LUID privilege_luid;
|
| if (!::LookupPrivilegeValue(NULL, privilege_name, &privilege_luid)) {
|
|
|