Index: cc/test/animation_timelines_test_common.cc |
diff --git a/cc/test/animation_timelines_test_common.cc b/cc/test/animation_timelines_test_common.cc |
index e9377635582c17dcfc4ceeaad7445f4a76c15594..5f640b8091f5e53e2cd50cd894511cb12428a887 100644 |
--- a/cc/test/animation_timelines_test_common.cc |
+++ b/cc/test/animation_timelines_test_common.cc |
@@ -495,16 +495,22 @@ AnimationPlayer* AnimationTimelinesTest::GetPlayerForElementId( |
ElementId element_id) { |
const scoped_refptr<ElementAnimations> element_animations = |
host_->GetElementAnimationsForElementId(element_id); |
- return element_animations ? element_animations->players_list().head()->value() |
- : nullptr; |
+ return element_animations |
+ ? ElementAnimations::PlayersList::Iterator( |
+ &element_animations->players_list()) |
+ .GetNext() |
+ : nullptr; |
} |
AnimationPlayer* AnimationTimelinesTest::GetImplPlayerForLayerId( |
ElementId element_id) { |
const scoped_refptr<ElementAnimations> element_animations = |
host_impl_->GetElementAnimationsForElementId(element_id); |
- return element_animations ? element_animations->players_list().head()->value() |
- : nullptr; |
+ return element_animations |
+ ? ElementAnimations::PlayersList::Iterator( |
+ &element_animations->players_list()) |
+ .GetNext() |
+ : nullptr; |
} |
int AnimationTimelinesTest::NextTestLayerId() { |