Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: webrtc/modules/desktop_capture/x11/shared_x_display.cc

Issue 2482963003: Remove evil defines out of shared_x_display.h (Closed)
Patch Set: Resolve review comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/desktop_capture/x11/shared_x_display.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/desktop_capture/x11/shared_x_display.cc
diff --git a/webrtc/modules/desktop_capture/x11/shared_x_display.cc b/webrtc/modules/desktop_capture/x11/shared_x_display.cc
index 3eb5eb10a9e05e85beaa51eda20ed8d8fd0177c7..c5b9bd914c3bc0ddfb415cd1920571406fed39d7 100644
--- a/webrtc/modules/desktop_capture/x11/shared_x_display.cc
+++ b/webrtc/modules/desktop_capture/x11/shared_x_display.cc
@@ -10,19 +10,22 @@
#include "webrtc/modules/desktop_capture/x11/shared_x_display.h"
+#include <X11/Xlib.h>
+
#include <algorithm>
+#include "webrtc/base/checks.h"
#include "webrtc/system_wrappers/include/logging.h"
namespace webrtc {
SharedXDisplay::SharedXDisplay(Display* display)
: display_(display) {
- assert(display_);
+ RTC_DCHECK(display_);
}
SharedXDisplay::~SharedXDisplay() {
- assert(event_handlers_.empty());
+ RTC_DCHECK(event_handlers_.empty());
XCloseDisplay(display_);
}
« no previous file with comments | « webrtc/modules/desktop_capture/x11/shared_x_display.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698