summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-23 18:20:23 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-23 18:20:23 +0000
commitdccfb4753e6188c1bd73b292fe45ea1805c06017 (patch)
treec375996d94de7ecbf64edf5a556ca0ab8ae74be7 /base
parent5228f46434c44dbb00f81b1f2c502b9da8cc8f31 (diff)
downloadchromium_src-dccfb4753e6188c1bd73b292fe45ea1805c06017.zip
chromium_src-dccfb4753e6188c1bd73b292fe45ea1805c06017.tar.gz
chromium_src-dccfb4753e6188c1bd73b292fe45ea1805c06017.tar.bz2
Mac: Don't show dialogs for debug messages.
They're printed to stderr, and the dialogs are often too high to fit on a (30'') screen. BUG=none TEST=none Review URL: http://codereview.chromium.org/6482013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/logging.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/base/logging.cc b/base/logging.cc
index 0a808b4..e36a168b 100644
--- a/base/logging.cc
+++ b/base/logging.cc
@@ -14,7 +14,6 @@ typedef HANDLE MutexHandle;
// Windows doesn't define STDERR_FILENO. Define it here.
#define STDERR_FILENO 2
#elif defined(OS_MACOSX)
-#include <CoreFoundation/CoreFoundation.h>
#include <mach/mach.h>
#include <mach/mach_time.h>
#include <mach-o/dyld.h>
@@ -57,10 +56,6 @@ typedef pthread_mutex_t* MutexHandle;
#if defined(OS_POSIX)
#include "base/safe_strerror_posix.h"
#endif
-#if defined(OS_MACOSX)
-#include "base/mac/scoped_cftyperef.h"
-#include "base/sys_string_conversions.h"
-#endif
namespace logging {
@@ -503,12 +498,6 @@ void DisplayDebugMessageInDialog(const std::string& str) {
MessageBoxW(NULL, &cmdline[0], L"Fatal error",
MB_OK | MB_ICONHAND | MB_TOPMOST);
}
-#elif defined(OS_MACOSX)
- base::mac::ScopedCFTypeRef<CFStringRef> message(
- base::SysUTF8ToCFStringRef(str));
- CFUserNotificationDisplayNotice(0, kCFUserNotificationStopAlertLevel,
- NULL, NULL, NULL, CFSTR("Fatal Error"),
- message, NULL);
#else
// We intentionally don't implement a dialog on other platforms.
// You can just look at stderr.