Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(753)

Unified Diff: components/sync_driver/frontend_data_type_controller_unittest.cc

Issue 2053913002: Remove MessageLoop::current()->RunUntilIdle() in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/sync_driver/frontend_data_type_controller_unittest.cc
diff --git a/components/sync_driver/frontend_data_type_controller_unittest.cc b/components/sync_driver/frontend_data_type_controller_unittest.cc
index 03c47bdb8d4abe39f09d5ff7be246b53ebb414c1..a64ccc86319016d686cbe0ed210bcae763e11005 100644
--- a/components/sync_driver/frontend_data_type_controller_unittest.cc
+++ b/components/sync_driver/frontend_data_type_controller_unittest.cc
@@ -11,6 +11,7 @@
#include "base/callback.h"
#include "base/location.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 "base/tracked_objects.h"
@@ -149,7 +150,7 @@ class SyncFrontendDataTypeControllerTest : public testing::Test,
PumpLoop();
}
- void PumpLoop() { base::MessageLoop::current()->RunUntilIdle(); }
+ void PumpLoop() { base::RunLoop().RunUntilIdle(); }
base::MessageLoop message_loop_;
scoped_refptr<FrontendDataTypeControllerFake> frontend_dtc_;

Powered by Google App Engine
This is Rietveld 408576698