Index: cc/layers/layer_unittest.cc |
diff --git a/cc/layers/layer_unittest.cc b/cc/layers/layer_unittest.cc |
index 16893a14105414ae0375042b38febf78bfef7056..61d933345215d94134a23f7d59d6898cbcbba677 100644 |
--- a/cc/layers/layer_unittest.cc |
+++ b/cc/layers/layer_unittest.cc |
@@ -1173,7 +1173,7 @@ TEST_F(LayerLayerTreeHostTest, ShouldNotAddAnimationWithoutAnimationRegistrar) { |
EXPECT_FALSE(AddTestAnimation(layer.get())); |
scoped_ptr<AnimationRegistrar> registrar = AnimationRegistrar::Create(); |
- layer->layer_animation_controller()->SetAnimationRegistrar(registrar.get()); |
+ layer->RegisterForAnimations(registrar.get()); |
// Case 2: with an AnimationRegistrar, the animation should be accepted. |
EXPECT_TRUE(AddTestAnimation(layer.get())); |