Index: cc/animation/animation_player_unittest.cc |
diff --git a/cc/animation/animation_player_unittest.cc b/cc/animation/animation_player_unittest.cc |
index d896f21340238e226056295905f64f96b776a3fe..8c731ecb9dd8436ec5a8f827aa507035698c908f 100644 |
--- a/cc/animation/animation_player_unittest.cc |
+++ b/cc/animation/animation_player_unittest.cc |
@@ -394,7 +394,8 @@ TEST_F(AnimationPlayerTest, SwitchToLayer) { |
EXPECT_EQ(player_impl_->element_id(), element_id_); |
EXPECT_TRUE(CheckPlayerTimelineNeedsPushProperties(false)); |
- const ElementId new_element_id(NextTestLayerId(), 0); |
+ ElementId new_element_id; |
+ new_element_id.id = NextTestLayerId(); |
player_->DetachElement(); |
player_->AttachElement(new_element_id); |