summaryrefslogtreecommitdiffstats
path: root/cc/input/top_controls_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/input/top_controls_manager.cc')
-rw-r--r--cc/input/top_controls_manager.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/cc/input/top_controls_manager.cc b/cc/input/top_controls_manager.cc
index e972247..79353f2 100644
--- a/cc/input/top_controls_manager.cc
+++ b/cc/input/top_controls_manager.cc
@@ -180,9 +180,7 @@ gfx::Vector2dF TopControlsManager::Animate(base::TimeTicks monotonic_time) {
}
void TopControlsManager::ResetAnimations() {
- if (top_controls_animation_)
- top_controls_animation_.reset();
-
+ top_controls_animation_ = nullptr;
animation_direction_ = NO_ANIMATION;
}