Index: sandbox/win/src/sandbox_policy_base.cc |
diff --git a/sandbox/win/src/sandbox_policy_base.cc b/sandbox/win/src/sandbox_policy_base.cc |
index 52aa5b40e28482cc726ae076839f5546e9534621..499cdd96748e0b4f7c7e464f25abce78ae98e0bb 100644 |
--- a/sandbox/win/src/sandbox_policy_base.cc |
+++ b/sandbox/win/src/sandbox_policy_base.cc |
@@ -112,8 +112,7 @@ IntegrityLevel TargetPolicy::alternate_desktop_integrity_level_label_ = |
INTEGRITY_LEVEL_SYSTEM; |
TargetPolicy::TargetPolicy() |
- : ref_count(1), |
- lockdown_level_(USER_LOCKDOWN), |
+ : lockdown_level_(USER_LOCKDOWN), |
initial_level_(USER_LOCKDOWN), |
job_level_(JOB_LOCKDOWN), |
ui_exceptions_(0), |
@@ -152,15 +151,6 @@ TargetPolicy::~TargetPolicy() { |
::DeleteCriticalSection(&lock_); |
} |
-void TargetPolicy::AddRef() { |
- ::InterlockedIncrement(&ref_count); |
-} |
- |
-void TargetPolicy::Release() { |
- if (0 == ::InterlockedDecrement(&ref_count)) |
- delete this; |
-} |
- |
ResultCode TargetPolicy::SetTokenLevel(TokenLevel initial, |
TokenLevel lockdown) { |
if (initial < lockdown) { |