Index: content/browser/web_contents/aura/overscroll_window_animation.cc |
diff --git a/content/browser/web_contents/aura/overscroll_window_animation.cc b/content/browser/web_contents/aura/overscroll_window_animation.cc |
index 854a29934e499913ecec41c8a1cd8ca389a1f0c5..c89faa08b082c9a5db39f5a526bc66b838f9f2f0 100644 |
--- a/content/browser/web_contents/aura/overscroll_window_animation.cc |
+++ b/content/browser/web_contents/aura/overscroll_window_animation.cc |
@@ -86,6 +86,7 @@ void OverscrollWindowAnimation::OnImplicitAnimationsCompleted() { |
void OverscrollWindowAnimation::OnOverscrollModeChange( |
OverscrollMode old_mode, |
OverscrollMode new_mode) { |
+ DCHECK_NE(old_mode, new_mode); |
Direction new_direction = GetDirectionForMode(new_mode); |
if (new_direction == SLIDE_NONE) { |
// The user cancelled the in progress animation. |