Index: base/logging.cc |
diff --git a/base/logging.cc b/base/logging.cc |
index 40497bf6275e11a4b78c57a82265638d7f89c104..9d0f5e709dd848e2ad33e4e4f6f7fbe37e598236 100644 |
--- a/base/logging.cc |
+++ b/base/logging.cc |
@@ -54,8 +54,14 @@ typedef pthread_mutex_t* MutexHandle; |
#if defined(OS_POSIX) |
#include "base/safe_strerror_posix.h" |
#endif |
+#if defined(OS_MACOSX) |
viettrungluu
2010/12/14 00:03:43
I think the new convention (per some post on chrom
stuartmorgan
2010/12/14 00:04:19
I can't find the email now, but the recollection o
|
+#include "base/mac/scoped_cftyperef.h" |
+#endif |
#include "base/process_util.h" |
#include "base/string_piece.h" |
+#if defined(OS_MACOSX) |
+#include "base/sys_string_conversions.h" |
+#endif |
#include "base/thread_restrictions.h" |
#include "base/utf_string_conversions.h" |
#include "base/vlog.h" |
@@ -511,6 +517,12 @@ void DisplayDebugMessageInDialog(const std::string& str) { |
argv.push_back(str); |
base::LaunchApp(argv, base::file_handle_mapping_vector(), true /* wait */, |
NULL); |
+#elif defined(OS_MACOSX) |
+ base::mac::ScopedCFTypeRef<CFStringRef> message( |
+ base::SysUTF8ToCFStringRef(str)); |
+ CFUserNotificationDisplayNotice(0, kCFUserNotificationStopAlertLevel, |
+ NULL, NULL, NULL, CFSTR("Fatal Error"), |
+ message, NULL); |
#else |
// http://code.google.com/p/chromium/issues/detail?id=37026 |
NOTIMPLEMENTED(); |