Skip to content

Commit

Permalink
Remove unnecessary #ifdef case.
Browse files Browse the repository at this point in the history
Remove #ifdef USE_X11 && !USE_GLIB check. That would have been for the
X11 CrOS build which no longer exists.

Bug: none
Change-Id: Iccea3d36ef92ed1dde44773ce4a74184a7a2c37b
Reviewed-on: https://chromium-review.googlesource.com/1014281
Reviewed-by: Gabriel Charette <gab@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551801}
  • Loading branch information
kylechar authored and Commit Bot committed Apr 18, 2018
1 parent be9d126 commit 9e0c6c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions base/message_loop/message_loop_current.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ bool MessageLoopCurrentForUI::IsSet() {
#endif // defined(OS_ANDROID)
}

#if (defined(USE_OZONE) && !defined(OS_FUCHSIA)) || \
(defined(USE_X11) && !defined(USE_GLIB))
#if defined(USE_OZONE) && !defined(OS_FUCHSIA)
bool MessageLoopCurrentForUI::WatchFileDescriptor(
int fd,
bool persistent,
Expand Down
3 changes: 1 addition & 2 deletions base/message_loop/message_loop_current.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ class BASE_EXPORT MessageLoopCurrentForUI : public MessageLoopCurrent {

MessageLoopCurrentForUI* operator->() { return this; }

#if (defined(USE_OZONE) && !defined(OS_FUCHSIA)) || \
(defined(USE_X11) && !defined(USE_GLIB))
#if defined(USE_OZONE) && !defined(OS_FUCHSIA)
// Please see MessagePumpLibevent for definition.
static_assert(std::is_same<MessagePumpForUI, MessagePumpLibevent>::value,
"MessageLoopCurrentForUI::WatchFileDescriptor is not supported "
Expand Down

0 comments on commit 9e0c6c2

Please sign in to comment.