Index: ui/views/widget/desktop_aura/desktop_screen_win.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_screen_win.cc b/ui/views/widget/desktop_aura/desktop_screen_win.cc |
index 5cf42f538f8b206f002ede9bfe638f77da34fa5d..c5edf76c6870a8993fb8795c6002a9c65be03b0a 100644 |
--- a/ui/views/widget/desktop_aura/desktop_screen_win.cc |
+++ b/ui/views/widget/desktop_aura/desktop_screen_win.cc |
@@ -54,8 +54,8 @@ gfx::Display DesktopScreenWin::GetDisplayMatching( |
} |
HWND DesktopScreenWin::GetHWNDFromNativeView(gfx::NativeView window) const { |
- aura::WindowEventDispatcher* dispatcher = window->GetDispatcher(); |
- return dispatcher ? dispatcher->host()->GetAcceleratedWidget() : NULL; |
+ aura::WindowTreeHost* host = window->GetHost(); |
+ return host ? host->GetAcceleratedWidget() : NULL; |
} |
gfx::NativeWindow DesktopScreenWin::GetNativeWindowFromHWND(HWND hwnd) const { |