| Index: sandbox/win/src/restricted_token.cc
|
| diff --git a/sandbox/win/src/restricted_token.cc b/sandbox/win/src/restricted_token.cc
|
| index 3960926f4d792829fe3b7fe260335fdc62b549eb..7ebef3de9aefd278df5a012c95c9cc220e3983dd 100644
|
| --- a/sandbox/win/src/restricted_token.cc
|
| +++ b/sandbox/win/src/restricted_token.cc
|
| @@ -10,9 +10,19 @@
|
| #include "sandbox/win/src/acl.h"
|
| #include "sandbox/win/src/win_utils.h"
|
|
|
| -
|
| namespace sandbox {
|
|
|
| +RestrictedToken::RestrictedToken()
|
| + : init_(false),
|
| + effective_token_(NULL),
|
| + integrity_level_(INTEGRITY_LEVEL_LAST) {
|
| +}
|
| +
|
| +RestrictedToken::~RestrictedToken() {
|
| + if (effective_token_)
|
| + CloseHandle(effective_token_);
|
| +}
|
| +
|
| unsigned RestrictedToken::Init(const HANDLE effective_token) {
|
| if (init_)
|
| return ERROR_ALREADY_INITIALIZED;
|
|
|