Index: components/policy/core/common/policy_statistics_collector_unittest.cc |
diff --git a/components/policy/core/common/policy_statistics_collector_unittest.cc b/components/policy/core/common/policy_statistics_collector_unittest.cc |
index d5bf09cb99866fb05cab889191d067bfd4b79052..fd498d5590b2df3105c8d54d1caab51dbc9f0105 100644 |
--- a/components/policy/core/common/policy_statistics_collector_unittest.cc |
+++ b/components/policy/core/common/policy_statistics_collector_unittest.cc |
@@ -117,7 +117,7 @@ class PolicyStatisticsCollectorTest : public testing::Test { |
ADD_FAILURE(); |
return base::TimeDelta(); |
} |
- return task_runner_->GetPendingTasks().front().delay; |
+ return task_runner_->NextPendingTaskDelay(); |
} |
const base::TimeDelta update_delay_; |