diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-21 22:22:10 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-21 22:22:10 +0000 |
commit | 23bb71fb2a8d32adb4f5d9baf36a6b17c2111fa9 (patch) | |
tree | 39abb0de36acc80ae452d45d57504242d980536e /chrome/common/bzip2_error_handler.cc | |
parent | 25b63dbaa7974ee2f62928790139611adfae1bad (diff) | |
download | chromium_src-23bb71fb2a8d32adb4f5d9baf36a6b17c2111fa9.zip chromium_src-23bb71fb2a8d32adb4f5d9baf36a6b17c2111fa9.tar.gz chromium_src-23bb71fb2a8d32adb4f5d9baf36a6b17c2111fa9.tar.bz2 |
Base: More adjustments to BASE_API and project dependencies to
use base.dll from chrome.
BUG=76996
TEST=none
Review URL: http://codereview.chromium.org/6877053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/bzip2_error_handler.cc')
-rw-r--r-- | chrome/common/bzip2_error_handler.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/bzip2_error_handler.cc b/chrome/common/bzip2_error_handler.cc new file mode 100644 index 0000000..e66bcf3 --- /dev/null +++ b/chrome/common/bzip2_error_handler.cc @@ -0,0 +1,14 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include <ostream> + +#include "base/logging.h" + +// We define BZ_NO_STDIO in third_party/bzip2 to remove its internal STDERR +// error reporting. This requires us to export our own error handler. +extern "C" +void bz_internal_error(int errcode) { + LOG(FATAL) << "bzip2 internal error: " << errcode; +} |