Index: chrome/browser/media/desktop_media_list_ash_unittest.cc |
diff --git a/chrome/browser/media/desktop_media_list_ash_unittest.cc b/chrome/browser/media/desktop_media_list_ash_unittest.cc |
index 07c9bb927bc85e7b64c65f700ed03277d4676c7c..75ac099fa2dcb055cd2f7f6901f3de3f98ea768c 100644 |
--- a/chrome/browser/media/desktop_media_list_ash_unittest.cc |
+++ b/chrome/browser/media/desktop_media_list_ash_unittest.cc |
@@ -8,6 +8,7 @@ |
#include "base/location.h" |
#include "base/macros.h" |
#include "base/message_loop/message_loop.h" |
+#include "base/run_loop.h" |
#include "base/single_thread_task_runner.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "build/build_config.h" |
@@ -64,7 +65,7 @@ TEST_F(DesktopMediaListAshTest, Screen) { |
.WillOnce(QuitMessageLoop()) |
.WillRepeatedly(DoDefault()); |
list_->StartUpdating(&observer_); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
} |
TEST_F(DesktopMediaListAshTest, OneWindow) { |
@@ -83,9 +84,9 @@ TEST_F(DesktopMediaListAshTest, OneWindow) { |
.WillOnce(QuitMessageLoop()); |
list_->StartUpdating(&observer_); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
window.reset(); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
} |
TEST_F(DesktopMediaListAshTest, ScreenOnly) { |
@@ -99,7 +100,7 @@ TEST_F(DesktopMediaListAshTest, ScreenOnly) { |
.WillRepeatedly(DoDefault()); |
list_->StartUpdating(&observer_); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
} |
// Times out on Win DrMemory bot. http://crbug.com/493187 |
@@ -122,7 +123,7 @@ TEST_F(DesktopMediaListAshTest, MAYBE_WindowOnly) { |
.WillOnce(QuitMessageLoop()); |
list_->StartUpdating(&observer_); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
window.reset(); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
} |