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

Issue 2482963003: Remove evil defines out of shared_x_display.h (Closed)

Created:
4 years, 1 month ago by Hzj_jie
Modified:
4 years, 1 month ago
Reviewers:
Sergey Ulanov, Jamie
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove evil defines out of shared_x_display.h This is a trivial but dangerous change to remove X11/Xlib.h out of shared_x_display.h. Since we do not have a strict and automatically Include-What-You-Use rule, I cannot quite tell whether any Chromium source files wrongly assume X11/Xlib.h will be included through shared_x_display.h. We can fix the breaks in Chromium after this change has been failed to integrate to Chromium. BUG=webrtc:6513 Committed: https://crrev.com/e083909f85c761574080cad160a8728a2bed7544 Cr-Commit-Position: refs/heads/master@{#14987}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Resolve review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M webrtc/modules/desktop_capture/screen_drawer_linux.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/x11/shared_x_display.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M webrtc/modules/desktop_capture/x11/shared_x_display.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Hzj_jie
4 years, 1 month ago (2016-11-08 04:23:53 UTC) #4
Sergey Ulanov
lgtm https://codereview.webrtc.org/2482963003/diff/20001/webrtc/modules/desktop_capture/screen_drawer_linux.cc File webrtc/modules/desktop_capture/screen_drawer_linux.cc (right): https://codereview.webrtc.org/2482963003/diff/20001/webrtc/modules/desktop_capture/screen_drawer_linux.cc#newcode11 webrtc/modules/desktop_capture/screen_drawer_linux.cc:11: #include <X11/Xlib.h> Sort includes alphabetically https://codereview.webrtc.org/2482963003/diff/20001/webrtc/modules/desktop_capture/x11/shared_x_display.h File webrtc/modules/desktop_capture/x11/shared_x_display.h ...
4 years, 1 month ago (2016-11-08 18:31:58 UTC) #5
Hzj_jie
I will go ahead to submit this change and see if chromium would be broken. ...
4 years, 1 month ago (2016-11-08 20:14:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2482963003/40001
4 years, 1 month ago (2016-11-08 20:25:49 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 1 month ago (2016-11-08 20:47:16 UTC) #11
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 21:00:05 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e083909f85c761574080cad160a8728a2bed7544
Cr-Commit-Position: refs/heads/master@{#14987}

Powered by Google App Engine
This is Rietveld 408576698