Index: ash/shelf/shelf_layout_manager_unittest.cc |
diff --git a/ash/shelf/shelf_layout_manager_unittest.cc b/ash/shelf/shelf_layout_manager_unittest.cc |
index 246b1af762975c2fd32e1d8d59b92fa0b4f9ebe2..0f1374ec8a0e84cf5288b0516f71fa1de29d474a 100644 |
--- a/ash/shelf/shelf_layout_manager_unittest.cc |
+++ b/ash/shelf/shelf_layout_manager_unittest.cc |
@@ -32,6 +32,7 @@ |
#include "ash/wm/window_state_aura.h" |
#include "ash/wm/window_util.h" |
#include "base/command_line.h" |
+#include "base/run_loop.h" |
#include "ui/aura/client/aura_constants.h" |
#include "ui/aura/client/window_tree_client.h" |
#include "ui/aura/window.h" |
@@ -89,7 +90,7 @@ class ShelfAnimationWaiter : views::WidgetObserver { |
if (IsDoneAnimating()) |
done_waiting_ = true; |
else |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
} |
// Returns true if the animation has completed and it was valid. |