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

Unified Diff: components/invalidation/impl/invalidation_notifier_unittest.cc

Issue 2082333002: Remove calls to deprecated MessageLoop methods 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/invalidation/impl/invalidation_notifier_unittest.cc
diff --git a/components/invalidation/impl/invalidation_notifier_unittest.cc b/components/invalidation/impl/invalidation_notifier_unittest.cc
index 62ae4773dcba337f6cd3fe7987ddb23c6f1a07c2..c2d4d1bef58f181e1b66ed69f51d92eff4adbf04 100644
--- a/components/invalidation/impl/invalidation_notifier_unittest.cc
+++ b/components/invalidation/impl/invalidation_notifier_unittest.cc
@@ -7,6 +7,7 @@
#include <memory>
#include <utility>
+#include "base/run_loop.h"
#include "base/threading/thread_task_runner_handle.h"
#include "components/invalidation/impl/fake_invalidation_handler.h"
#include "components/invalidation/impl/fake_invalidation_state_tracker.h"
@@ -57,13 +58,11 @@ class InvalidationNotifierTestDelegate {
// another task, so they must be run in order to avoid leaking the inner
// task. Stopping does not schedule any tasks, so it's both necessary and
// sufficient to drain the task queue before stopping the notifier.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
invalidator_.reset();
}
- void WaitForInvalidator() {
- message_loop_.RunUntilIdle();
- }
+ void WaitForInvalidator() { base::RunLoop().RunUntilIdle(); }
void TriggerOnInvalidatorStateChange(InvalidatorState state) {
invalidator_->OnInvalidatorStateChange(state);

Powered by Google App Engine
This is Rietveld 408576698