Index: ui/views/corewm/capture_controller_unittest.cc |
diff --git a/ui/views/corewm/capture_controller_unittest.cc b/ui/views/corewm/capture_controller_unittest.cc |
index 9f5376881e5f8e85faeeb738e6dbf7e03065e62e..5258614d5bc4477520b0694908d60e2114990ee2 100644 |
--- a/ui/views/corewm/capture_controller_unittest.cc |
+++ b/ui/views/corewm/capture_controller_unittest.cc |
@@ -100,7 +100,7 @@ TEST_F(CaptureControllerTest, ResetMouseEventHandlerOnCapture) { |
ui::MouseEvent mouse_pressed_event(ui::ET_MOUSE_PRESSED, gfx::Point(5, 5), |
gfx::Point(5, 5), 0, 0); |
DispatchEventUsingWindowDispatcher(&mouse_pressed_event); |
- EXPECT_EQ(w1.get(), dispatcher()->mouse_pressed_handler()); |
+ EXPECT_EQ(w1.get(), host()->dispatcher()->mouse_pressed_handler()); |
// Build a window in the second WindowEventDispatcher. |
scoped_ptr<aura::Window> w2( |
@@ -109,7 +109,7 @@ TEST_F(CaptureControllerTest, ResetMouseEventHandlerOnCapture) { |
// The act of having the second window take capture should clear out mouse |
// pressed handler in the first WindowEventDispatcher. |
w2->SetCapture(); |
- EXPECT_EQ(NULL, dispatcher()->mouse_pressed_handler()); |
+ EXPECT_EQ(NULL, host()->dispatcher()->mouse_pressed_handler()); |
} |
// Makes sure that when one window gets capture, it forces the release on the |