| Index: base/win/scoped_handle.cc
|
| diff --git a/base/win/scoped_handle.cc b/base/win/scoped_handle.cc
|
| index 9c21603a0e8768e0466c7dba764c944ad26102cb..debe223795ce0f28a6211ccf4c96115c41bd106c 100644
|
| --- a/base/win/scoped_handle.cc
|
| +++ b/base/win/scoped_handle.cc
|
| @@ -44,7 +44,7 @@ base::LazyInstance<NativeLock>::Leaky g_lock = LAZY_INSTANCE_INITIALIZER;
|
|
|
| bool CloseHandleWrapper(HANDLE handle) {
|
| if (!::CloseHandle(handle))
|
| - CHECK(false);
|
| + LOG(FATAL) << "CloseHandle failed.";
|
| return true;
|
| }
|
|
|
| @@ -166,7 +166,7 @@ void ActiveVerifier::StartTracking(HANDLE handle, const void* owner,
|
| if (!result.second) {
|
| Info other = result.first->second;
|
| base::debug::Alias(&other);
|
| - CHECK(false);
|
| + LOG(FATAL) << "Attempt to start tracking already tracked handle.";
|
| }
|
| }
|
|
|
| @@ -178,12 +178,12 @@ void ActiveVerifier::StopTracking(HANDLE handle, const void* owner,
|
| AutoNativeLock lock(*lock_);
|
| HandleMap::iterator i = map_.find(handle);
|
| if (i == map_.end())
|
| - CHECK(false);
|
| + LOG(FATAL) << "Attempting to close an untracked handle.";
|
|
|
| Info other = i->second;
|
| if (other.owner != owner) {
|
| base::debug::Alias(&other);
|
| - CHECK(false);
|
| + LOG(FATAL) << "Attempting to close a handle not owned by opener.";
|
| }
|
|
|
| map_.erase(i);
|
| @@ -207,7 +207,7 @@ void ActiveVerifier::OnHandleBeingClosed(HANDLE handle) {
|
|
|
| Info other = i->second;
|
| base::debug::Alias(&other);
|
| - CHECK(false);
|
| + LOG(FATAL) << "CloseHandle called on tracked handle.";
|
| }
|
|
|
| } // namespace
|
|
|