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; |