Index: ui/base/x/x11_util_internal.h |
diff --git a/ui/base/x/x11_util_internal.h b/ui/base/x/x11_util_internal.h |
index 70eb088c786e8668e48eb2f65f14f0d0a425a423..c84063fe755ff5c7adefce60842432c387059327 100644 |
--- a/ui/base/x/x11_util_internal.h |
+++ b/ui/base/x/x11_util_internal.h |
@@ -50,6 +50,11 @@ UI_EXPORT void SetX11ErrorHandlers(XErrorHandler error_handler, |
UI_EXPORT void LogErrorEventDescription(Display* dpy, |
const XErrorEvent& error_event); |
+// LOG(FATAL) if an X11 errors has been reported. Uses XSync to ensure that all |
+// requests have been received and processed by the X server and uses the X |
+// display contained in the reported XErrorEvent. |
+UI_EXPORT void CheckForReportedX11Error(); |
+ |
} // namespace ui |
#endif // UI_BASE_X_X11_UTIL_INTERNAL_H_ |