Index: ui/events/blink/input_handler_proxy_unittest.cc |
diff --git a/ui/events/blink/input_handler_proxy_unittest.cc b/ui/events/blink/input_handler_proxy_unittest.cc |
index e30d729e3618c57ebcaffcc049a98b5caa21c336..10ac7586404002afe6bc618f6866439b31c4f057 100644 |
--- a/ui/events/blink/input_handler_proxy_unittest.cc |
+++ b/ui/events/blink/input_handler_proxy_unittest.cc |
@@ -296,11 +296,11 @@ class MockInputHandlerProxyClient |
DispatchNonBlockingEventToMainThread_(*event.get()); |
} |
- blink::WebGestureCurve* CreateFlingAnimationCurve( |
+ std::unique_ptr<blink::WebGestureCurve> CreateFlingAnimationCurve( |
WebGestureDevice deviceSource, |
const WebFloatPoint& velocity, |
const WebSize& cumulative_scroll) override { |
- return new FakeWebGestureCurve( |
+ return base::MakeUnique<FakeWebGestureCurve>( |
blink::WebFloatSize(velocity.x, velocity.y), |
blink::WebFloatSize(cumulative_scroll.width, cumulative_scroll.height)); |
} |