diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 00:43:22 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 00:43:22 +0000 |
commit | 8e6b2c1c965662a2ac519423f2d2bcde692e6a3d (patch) | |
tree | ee9f699ebf81fdccfcbb3267c69543c13e80bc66 /base | |
parent | 88e326c6ec37d2c7aed12f9d5f1a5a3242ba1908 (diff) | |
download | chromium_src-8e6b2c1c965662a2ac519423f2d2bcde692e6a3d.zip chromium_src-8e6b2c1c965662a2ac519423f2d2bcde692e6a3d.tar.gz chromium_src-8e6b2c1c965662a2ac519423f2d2bcde692e6a3d.tar.bz2 |
Replace CHECK(false) by LOG(FATAL) where appropriate.
The difference is that the error message doesn't contain
"Assertion failed: false".
Review URL: http://codereview.chromium.org/1970001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/bzip2_error_handler.cc | 2 | ||||
-rw-r--r-- | base/process_util_linux.cc | 4 | ||||
-rw-r--r-- | base/thread_local_win.cc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/base/bzip2_error_handler.cc b/base/bzip2_error_handler.cc index 215c0c0..564cabd 100644 --- a/base/bzip2_error_handler.cc +++ b/base/bzip2_error_handler.cc @@ -8,5 +8,5 @@ // error reporting. This requires us to export our own error handler. extern "C" void bz_internal_error(int errcode) { - CHECK(false) << "bzip2 internal error: " << errcode; + LOG(FATAL) << "bzip2 internal error: " << errcode; } diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc index 61ad97e..0a2cc0d 100644 --- a/base/process_util_linux.cc +++ b/base/process_util_linux.cc @@ -500,8 +500,8 @@ namespace { void OnNoMemorySize(size_t size) { if (size != 0) - CHECK(false) << "Out of memory, size = " << size; - CHECK(false) << "Out of memory."; + LOG(FATAL) << "Out of memory, size = " << size; + LOG(FATAL) << "Out of memory."; } void OnNoMemory() { diff --git a/base/thread_local_win.cc b/base/thread_local_win.cc index 27a894c..368c0d6 100644 --- a/base/thread_local_win.cc +++ b/base/thread_local_win.cc @@ -31,7 +31,7 @@ void* ThreadLocalPlatform::GetValueFromSlot(SlotType& slot) { // static void ThreadLocalPlatform::SetValueInSlot(SlotType& slot, void* value) { if (!TlsSetValue(slot, value)) { - CHECK(false) << "Failed to TlsSetValue()."; + LOG(FATAL) << "Failed to TlsSetValue()."; } } |