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

Unified Diff: components/sync/engine_impl/sync_scheduler_impl_unittest.cc

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: still need to check MessageLoop::current() in Mojo's RunLoopNestingObserver::GetForThread() Created 3 years, 7 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/engine_impl/sync_scheduler_impl_unittest.cc
diff --git a/components/sync/engine_impl/sync_scheduler_impl_unittest.cc b/components/sync/engine_impl/sync_scheduler_impl_unittest.cc
index da14eed1c1df41de5615098232dcdb7040c0fe02..a62d45cbeae208360ba0bc01948f080236ba7978 100644
--- a/components/sync/engine_impl/sync_scheduler_impl_unittest.cc
+++ b/components/sync/engine_impl/sync_scheduler_impl_unittest.cc
@@ -310,7 +310,7 @@ void RecordSyncShareImpl(SyncShareTimes* times) {
ACTION_P2(RecordSyncShare, times, success) {
RecordSyncShareImpl(times);
- if (base::MessageLoop::current()->is_running())
+ if (base::RunLoop::IsRunningOnCurrentThread())
QuitLoopNow();
return success;
}
@@ -319,7 +319,7 @@ ACTION_P3(RecordSyncShareMultiple, times, quit_after, success) {
RecordSyncShareImpl(times);
EXPECT_LE(times->size(), quit_after);
if (times->size() >= quit_after &&
- base::MessageLoop::current()->is_running()) {
+ base::RunLoop::IsRunningOnCurrentThread()) {
QuitLoopNow();
}
return success;
« no previous file with comments | « components/omnibox/browser/autocomplete_provider_unittest.cc ('k') | content/browser/browser_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698