Index: ui/events/blink/input_handler_proxy.cc |
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc |
index 8511af6c0a77f90deab4248cc146e6231cf9606c..f6356716c027add2f4e5181aa5d7386205b7425a 100644 |
--- a/ui/events/blink/input_handler_proxy.cc |
+++ b/ui/events/blink/input_handler_proxy.cc |
@@ -998,7 +998,7 @@ bool InputHandlerProxy::CancelCurrentFling() { |
} |
bool InputHandlerProxy::CancelCurrentFlingWithoutNotifyingClient() { |
- bool had_fling_animation = fling_curve_; |
+ bool had_fling_animation = !!fling_curve_; |
if (had_fling_animation && |
fling_parameters_.sourceDevice == blink::WebGestureDeviceTouchscreen) { |
cc::ScrollState scroll_state(0, 0, fling_parameters_.point.x, |