Index: base/logging.cc |
diff --git a/base/logging.cc b/base/logging.cc |
index 851bdcc14c6e0acc3f0510e376e290c0affdc73a..09decbbaca471092ef7201cf7ebec67d887462fa 100644 |
--- a/base/logging.cc |
+++ b/base/logging.cc |
@@ -325,6 +325,9 @@ void DisplayDebugMessageInDialog(const std::string& str) { |
if (str.empty()) |
return; |
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kNoErrorDialogs)) |
+ return; |
+ |
#if defined(OS_WIN) |
// For Windows programs, it's possible that the message loop is |
// messed up on a fatal error, and creating a MessageBox will cause |