Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Unified Diff: ui/aura/window_event_dispatcher_unittest.cc

Issue 1402543002: Don't use base::MessageLoop::{Quit,QuitClosure} in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698