Index: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc |
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc |
index a282c4e220ff42c15070dfb7bbfdbf2244002e4f..9ad442b6b8f7d9e4bd845b168cca6cce3e6e80b0 100644 |
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc |
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc |
@@ -60,19 +60,19 @@ class MessageLoopTaskRunner : public TaskQueueManagerDelegateForTest { |
return make_scoped_refptr(new MessageLoopTaskRunner(std::move(tick_clock))); |
} |
- // NestableTaskRunner implementation. |
+ // TaskQueueManagerDelegateForTest: |
bool IsNested() const override { |
- return base::MessageLoop::current()->IsNested(); |
+ DCHECK(RunsTasksOnCurrentThread()); |
+ return base::RunLoop::IsNestedOnCurrentThread(); |
} |
- void AddNestingObserver( |
- base::MessageLoop::NestingObserver* observer) override { |
- base::MessageLoop::current()->AddNestingObserver(observer); |
+ void AddNestingObserver(base::RunLoop::NestingObserver* observer) override { |
+ base::RunLoop::AddNestingObserverOnCurrentThread(observer); |
} |
void RemoveNestingObserver( |
- base::MessageLoop::NestingObserver* observer) override { |
- base::MessageLoop::current()->RemoveNestingObserver(observer); |
+ base::RunLoop::NestingObserver* observer) override { |
+ base::RunLoop::RemoveNestingObserverOnCurrentThread(observer); |
} |
private: |
@@ -1251,7 +1251,7 @@ TEST_F(TaskQueueManagerTest, DelayedTaskDoesNotSkipAHeadOfShorterDelayedTask) { |
} |
void CheckIsNested(bool* is_nested) { |
- *is_nested = base::MessageLoop::current()->IsNested(); |
+ *is_nested = base::RunLoop::IsNestedOnCurrentThread(); |
} |
void PostAndQuitFromNestedRunloop(base::RunLoop* run_loop, |