diff options
author | Allan Sandfeld Jensen <[email protected]> | 2015-09-28 18:37:14 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <[email protected]> | 2015-09-29 07:47:06 +0000 |
commit | 0e8ff63a407fe323e215bb1a2c423c09a4747c8a (patch) | |
tree | e27e357e125d2d705bd504e1e3c8a3da1ed20f1d /chromium/base/win | |
parent | c3d0bb5bb15d008606b18b865841e19cd9bb5847 (diff) |
BASELINE: Update chromium to 45.0.2454.101upstream-45
Also adds web_cache component
Change-Id: I51238ceea8ee99854cc4989ae70a4fc2fc6bedcb
Reviewed-by: Kai Koehne <[email protected]>
Diffstat (limited to 'chromium/base/win')
-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()) |