Index: ui/wm/core/nested_accelerator_controller_unittest.cc |
diff --git a/ui/wm/core/nested_accelerator_controller_unittest.cc b/ui/wm/core/nested_accelerator_controller_unittest.cc |
index 4e55d4f5f26a10d3cd992aab3273672ce81081b8..cec37c90f946e56176e895ea5f3a8804a0229339 100644 |
--- a/ui/wm/core/nested_accelerator_controller_unittest.cc |
+++ b/ui/wm/core/nested_accelerator_controller_unittest.cc |
@@ -94,7 +94,7 @@ void DispatchKeyReleaseA(aura::Window* root_window) { |
#endif |
// Make sure the inner message-loop terminates after dispatching the events. |
base::MessageLoop::current()->PostTask( |
- FROM_HERE, base::MessageLoop::current()->QuitClosure()); |
+ FROM_HERE, base::MessageLoop::current()->QuitWhenIdleClosure()); |
} |
class MockNestedAcceleratorDelegate : public NestedAcceleratorDelegate { |