summaryrefslogtreecommitdiffstats
path: root/base/debug_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/debug_util.h')
-rw-r--r--base/debug_util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/debug_util.h b/base/debug_util.h
index b9ece20..303b4df 100644
--- a/base/debug_util.h
+++ b/base/debug_util.h
@@ -81,6 +81,16 @@ class DebugUtil {
// disables Apple Crash Reporter entirely.
static void DisableOSCrashDumps();
#endif // defined(OS_MACOSX)
+
+ // This should be used only in test code.
+ static void SuppressDialogs() {
+ suppress_dialogs_ = true;
+ }
+
+ private:
+ // If true, avoid displaying any dialogs that could cause problems
+ // in non-interactive environments.
+ static bool suppress_dialogs_;
};
#endif // BASE_DEBUG_UTIL_H_