| Index: ui/aura/window_event_dispatcher_unittest.cc
|
| diff --git a/ui/aura/window_event_dispatcher_unittest.cc b/ui/aura/window_event_dispatcher_unittest.cc
|
| index a48f0dda02bb2ddc5dc2237dfe46e3df73f1af90..db90159cf73360cbe82f47d4ba0f6604c8f1a9ab 100644
|
| --- a/ui/aura/window_event_dispatcher_unittest.cc
|
| +++ b/ui/aura/window_event_dispatcher_unittest.cc
|
| @@ -1929,7 +1929,7 @@ class ExitMessageLoopOnMousePress : public ui::test::TestEventHandler {
|
| void OnMouseEvent(ui::MouseEvent* event) override {
|
| ui::test::TestEventHandler::OnMouseEvent(event);
|
| if (event->type() == ui::ET_MOUSE_PRESSED)
|
| - base::MessageLoopForUI::current()->Quit();
|
| + base::MessageLoopForUI::current()->QuitWhenIdle();
|
| }
|
|
|
| private:
|
| @@ -1958,7 +1958,7 @@ class WindowEventDispatcherTestWithMessageLoop
|
| base::Bind(&WindowEventDispatcherTestWithMessageLoop::RepostEventHelper,
|
| host()->dispatcher(),
|
| base::Passed(&mouse)));
|
| - message_loop()->PostTask(FROM_HERE, message_loop()->QuitClosure());
|
| + message_loop()->PostTask(FROM_HERE, message_loop()->QuitWhenIdleClosure());
|
|
|
| base::MessageLoop::ScopedNestableTaskAllower allow(message_loop());
|
| base::RunLoop loop;
|
|
|