Index: ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc |
index 0bf08f3a2d3247e25394ab7ac15e6395792db6a0..ff2437ee1e46519c1dd2e9683fe7b36ae46c7243 100644 |
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc |
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc |
@@ -7,6 +7,7 @@ |
#include "base/bind.h" |
#include "base/macros.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "build/build_config.h" |
#include "ui/aura/client/aura_constants.h" |
#include "ui/aura/client/cursor_client.h" |
@@ -254,10 +255,10 @@ TEST_F(DesktopNativeWidgetAuraTest, WidgetCanBeDestroyedFromNestedLoop) { |
// |RunWithDispatcher()| below. |
base::RunLoop run_loop; |
base::Closure quit_runloop = run_loop.QuitClosure(); |
- message_loop()->PostTask(FROM_HERE, |
- base::Bind(&QuitNestedLoopAndCloseWidget, |
- base::Passed(&widget), |
- base::Unretained(&quit_runloop))); |
+ message_loop()->task_runner()->PostTask( |
+ FROM_HERE, |
+ base::Bind(&QuitNestedLoopAndCloseWidget, base::Passed(&widget), |
+ base::Unretained(&quit_runloop))); |
run_loop.Run(); |
} |