Index: ash/wm/activation_controller_unittest.cc |
diff --git a/ash/wm/activation_controller_unittest.cc b/ash/wm/activation_controller_unittest.cc |
index 807c82f60d88d49a7694ccf5b93179cc46677054..82df572e6510bb7f09796a713cb02c0240f95cf6 100644 |
--- a/ash/wm/activation_controller_unittest.cc |
+++ b/ash/wm/activation_controller_unittest.cc |
@@ -208,7 +208,8 @@ TEST_F(ActivationControllerTest, ClickOnMenu) { |
EXPECT_EQ(NULL, wm::GetActiveWindow()); |
// Clicking on an activatable window activates the window. |
- aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow(), w1.get()); |
+ aura::test::EventGenerator& generator = GetEventGenerator(); |
+ generator.MoveMouseToCenterOf(w1.get()); |
generator.ClickLeftButton(); |
EXPECT_TRUE(wm::IsActiveWindow(w1.get())); |