diff options
Diffstat (limited to 'base/logging.cc')
-rw-r--r-- | base/logging.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/logging.cc b/base/logging.cc index 851bdcc..09decbb 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 |