Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Unified Diff: ui/events/blink/input_handler_proxy.cc

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698