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

Unified Diff: components/sync/driver/ui_data_type_controller_unittest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/ui_data_type_controller_unittest.cc
diff --git a/components/sync/driver/ui_data_type_controller_unittest.cc b/components/sync/driver/ui_data_type_controller_unittest.cc
index e7e2bec6da65cfbed4bc656c96aa7cd3b315cd7f..bca7d02eeb72564c1c93111c3675a30d9e503a7d 100644
--- a/components/sync/driver/ui_data_type_controller_unittest.cc
+++ b/components/sync/driver/ui_data_type_controller_unittest.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/location.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"
@@ -75,7 +76,7 @@ class SyncUIDataTypeControllerTest : public testing::Test,
PumpLoop();
}
- void PumpLoop() { message_loop_.RunUntilIdle(); }
+ void PumpLoop() { base::RunLoop().RunUntilIdle(); }
base::MessageLoopForUI message_loop_;
const syncer::ModelType type_;

Powered by Google App Engine
This is Rietveld 408576698