Index: ash/wm/workspace/workspace_event_handler_unittest.cc |
diff --git a/ash/wm/workspace/workspace_event_handler_unittest.cc b/ash/wm/workspace/workspace_event_handler_unittest.cc |
index 5f1e48f1bc407d3d5ed2a3bab5e64ec7fd4ce6a9..ce2de8932cbd5a97001036dbdbbf202e4fd6d7dd 100644 |
--- a/ash/wm/workspace/workspace_event_handler_unittest.cc |
+++ b/ash/wm/workspace/workspace_event_handler_unittest.cc |
@@ -12,6 +12,7 @@ |
#include "ash/wm/wm_event.h" |
#include "ash/wm/workspace_controller.h" |
#include "ash/wm/workspace_controller_test_helper.h" |
+#include "base/thread_task_runner_handle.h" |
#include "ui/aura/client/aura_constants.h" |
#include "ui/aura/test/test_window_delegate.h" |
#include "ui/aura/window.h" |
@@ -453,7 +454,7 @@ TEST_F(WorkspaceEventHandlerTest, DeleteWhileInRunLoop) { |
delegate.set_window_component(HTCAPTION); |
ASSERT_TRUE(aura::client::GetWindowMoveClient(window->GetRootWindow())); |
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, window.get()); |
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, window.get()); |
aura::client::GetWindowMoveClient(window->GetRootWindow()) |
->RunMoveLoop(window.release(), |
gfx::Vector2d(), |