Index: ui/aura/env.cc |
diff --git a/ui/aura/env.cc b/ui/aura/env.cc |
index 0982d91ad265ca72a887bf2065eb7c1a3ba932be..4640b8559f68c5b2b4868cebfbaec452cc3f5859 100644 |
--- a/ui/aura/env.cc |
+++ b/ui/aura/env.cc |
@@ -5,6 +5,7 @@ |
#include "ui/aura/env.h" |
#include "base/command_line.h" |
+#include "base/message_loop/message_pump_dispatcher.h" |
#include "ui/aura/env_observer.h" |
#include "ui/aura/input_state_lookup.h" |
#include "ui/aura/window.h" |
@@ -75,8 +76,6 @@ bool Env::IsMouseButtonDown() const { |
mouse_button_flags_ != 0; |
} |
-#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ |
- !defined(USE_GTK_MESSAGE_PUMP) |
base::MessageLoop::Dispatcher* Env::GetDispatcher() { |
#if defined(USE_X11) |
return base::MessagePumpX11::Current(); |
@@ -84,7 +83,6 @@ base::MessageLoop::Dispatcher* Env::GetDispatcher() { |
return dispatcher_.get(); |
#endif |
} |
-#endif |
void Env::RootWindowActivated(RootWindow* root_window) { |
FOR_EACH_OBSERVER(EnvObserver, observers_, |