Index: ui/views/widget/desktop_aura/desktop_dispatcher_client.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_dispatcher_client.cc b/ui/views/widget/desktop_aura/desktop_dispatcher_client.cc |
index 6c01751f63a41ecdfe16ad60ae9909b9153c52b9..9962eaa0ec15bb7f00587a7db152710f16f6cc83 100644 |
--- a/ui/views/widget/desktop_aura/desktop_dispatcher_client.cc |
+++ b/ui/views/widget/desktop_aura/desktop_dispatcher_client.cc |
@@ -25,7 +25,12 @@ void DesktopDispatcherClient::RunWithDispatcher( |
base::MessageLoopForUI::ScopedNestableTaskAllower allow_nested(loop); |
base::Closure old_quit_closure = quit_closure_; |
+#if defined(OS_WIN) |
base::RunLoop run_loop(nested_dispatcher); |
+#else |
+ base::RunLoop run_loop; |
+#endif |
+ |
quit_closure_ = run_loop.QuitClosure(); |
base::WeakPtr<DesktopDispatcherClient> alive(weak_ptr_factory_.GetWeakPtr()); |
run_loop.Run(); |