diff options
Diffstat (limited to 'chromium/base/win/scoped_handle.cc')
-rw-r--r-- | chromium/base/win/scoped_handle.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/chromium/base/win/scoped_handle.cc b/chromium/base/win/scoped_handle.cc index ce944e43b9f..2ebef320bb8 100644 --- a/chromium/base/win/scoped_handle.cc +++ b/chromium/base/win/scoped_handle.cc @@ -152,12 +152,6 @@ void ActiveVerifier::StartTracking(HANDLE handle, const void* owner, if (!enabled_) return; - // Idea here is to make our handles non-closable until we close it ourselves. - // Handles provided could be totally fabricated especially through our - // unittest, we are ignoring that for now by not checking return value. - ::SetHandleInformation(handle, HANDLE_FLAG_PROTECT_FROM_CLOSE, - HANDLE_FLAG_PROTECT_FROM_CLOSE); - // Grab the thread id before the lock. DWORD thread_id = GetCurrentThreadId(); @@ -178,15 +172,6 @@ void ActiveVerifier::StopTracking(HANDLE handle, const void* owner, if (!enabled_) return; - // We expect handle to be protected till this point. - DWORD flags = 0; - if (::GetHandleInformation(handle, &flags)) { - CHECK_NE(0U, (flags & HANDLE_FLAG_PROTECT_FROM_CLOSE)); - - // Unprotect handle so that it could be closed. - ::SetHandleInformation(handle, HANDLE_FLAG_PROTECT_FROM_CLOSE, 0); - } - AutoNativeLock lock(*lock_); HandleMap::iterator i = map_.find(handle); if (i == map_.end()) |