| Index: remoting/host/linux/x11_util.cc
|
| diff --git a/remoting/host/linux/x11_util.cc b/remoting/host/linux/x11_util.cc
|
| index 1e88ba78c5fbdbea6ea8dfab6fabe56bb239a495..40ebf7b16438236533fa7ce8a2e52b40024d35c3 100644
|
| --- a/remoting/host/linux/x11_util.cc
|
| +++ b/remoting/host/linux/x11_util.cc
|
| @@ -15,10 +15,10 @@ static ScopedXErrorHandler* g_handler = nullptr;
|
| ScopedXErrorHandler::ScopedXErrorHandler(const Handler& handler):
|
| handler_(handler),
|
| ok_(true) {
|
| - // This is a poor-man's check for incorrect usage. It doesn't handle the case
|
| - // where a mix of ScopedXErrorHandler and raw XSetErrorHandler calls are used,
|
| - // and it disallows nested ScopedXErrorHandlers on the same thread, despite
|
| - // these being perfectly safe.
|
| + // This is a non-exhaustive check for incorrect usage. It doesn't handle the
|
| + // case where a mix of ScopedXErrorHandler and raw XSetErrorHandler calls are
|
| + // used, and it disallows nested ScopedXErrorHandlers on the same thread,
|
| + // despite these being perfectly safe.
|
| DCHECK(g_handler == nullptr);
|
| g_handler = this;
|
| previous_handler_ = XSetErrorHandler(HandleXErrors);
|
|
|