Index: chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc |
diff --git a/chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc b/chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc |
index 2eb1c81146a830a564e33b478473fee0dd10d38a..a9564eb0f1be4007a558b3e97490e9789674e2b9 100644 |
--- a/chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc |
+++ b/chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc |
@@ -413,7 +413,7 @@ bool CloudPolicyInvalidatorTest::CheckPolicyRefreshed(base::TimeDelta delay) { |
if (!task_runner_->HasPendingTask()) |
return false; |
- base::TimeDelta actual_delay = task_runner_->GetPendingTasks().back().delay; |
+ base::TimeDelta actual_delay = task_runner_->FinalPendingTaskDelay(); |
EXPECT_GE(actual_delay, delay); |
EXPECT_LE(actual_delay, max_delay); |