Index: ui/aura/window_tree_host_win.cc |
diff --git a/ui/aura/window_tree_host_win.cc b/ui/aura/window_tree_host_win.cc |
index 1fde2eea43b3ea8a64d40423680ddb2e7d28ccb5..0727401355fb8135ecd70fa7a75a094b12a2c204 100644 |
--- a/ui/aura/window_tree_host_win.cc |
+++ b/ui/aura/window_tree_host_win.cc |
@@ -128,7 +128,7 @@ void WindowTreeHostWin::DispatchEvent(ui::Event* event) { |
void WindowTreeHostWin::OnCloseRequest() { |
// TODO: this obviously shouldn't be here. |
- base::MessageLoopForUI::current()->Quit(); |
+ base::MessageLoopForUI::current()->QuitWhenIdle(); |
} |
void WindowTreeHostWin::OnClosed() { |