Index: components/sync_driver/non_ui_data_type_controller_unittest.cc |
diff --git a/components/sync_driver/non_ui_data_type_controller_unittest.cc b/components/sync_driver/non_ui_data_type_controller_unittest.cc |
index e4c69a03a8ff2d6e3bc3293f233b8eb3f85372a8..b18f0506c2742873f4b22e157bbb9c13aaf354e0 100644 |
--- a/components/sync_driver/non_ui_data_type_controller_unittest.cc |
+++ b/components/sync_driver/non_ui_data_type_controller_unittest.cc |
@@ -13,6 +13,7 @@ |
#include "base/compiler_specific.h" |
#include "base/location.h" |
#include "base/macros.h" |
+#include "base/run_loop.h" |
#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/test/test_timeouts.h" |
@@ -211,7 +212,7 @@ class SyncNonUIDataTypeControllerTest : public testing::Test, |
if (!done.IsSignaled()) { |
ADD_FAILURE() << "Timed out waiting for DB thread to finish."; |
} |
- base::MessageLoop::current()->RunUntilIdle(); |
+ base::RunLoop().RunUntilIdle(); |
} |
SyncService* GetSyncService() override { |