Index: cc/base/delayed_unique_notifier_unittest.cc |
diff --git a/cc/base/delayed_unique_notifier_unittest.cc b/cc/base/delayed_unique_notifier_unittest.cc |
index f30834e460f4ad98b1fa618bd9490d9c44403f32..ae9ad17e9972d9c2dc4d314c86edc62ba2627891 100644 |
--- a/cc/base/delayed_unique_notifier_unittest.cc |
+++ b/cc/base/delayed_unique_notifier_unittest.cc |
@@ -45,9 +45,7 @@ class DelayedUniqueNotifierTest : public testing::Test { |
int NotificationCount() const { return notification_count_; } |
std::deque<base::TestPendingTask> TakePendingTasks() { |
- std::deque<base::TestPendingTask> tasks = task_runner_->GetPendingTasks(); |
- task_runner_->ClearPendingTasks(); |
- return tasks; |
+ return task_runner_->TakePendingTasks(); |
} |
protected: |