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

Unified Diff: ui/events/gesture_detection/motion_event_buffer.cc

Issue 659713003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify Created 6 years, 2 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/gesture_detection/motion_event_buffer.cc
diff --git a/ui/events/gesture_detection/motion_event_buffer.cc b/ui/events/gesture_detection/motion_event_buffer.cc
index 11d2df735f2cc96895bad8e96022c2bc352e9398..26fc5ba6ec9c374ca6a8cf47c8286bd93848c521 100644
--- a/ui/events/gesture_detection/motion_event_buffer.cc
+++ b/ui/events/gesture_detection/motion_event_buffer.cc
@@ -162,7 +162,7 @@ scoped_ptr<MotionEvent> ResampleMotionEvent(const MotionEvent& event0,
event->set_action_index(event0.GetActionIndex());
event->set_button_state(event0.GetButtonState());
- return event.PassAs<MotionEvent>();
+ return event.Pass();
}
// MotionEvent implementation for storing multiple events, with the most
« no previous file with comments | « ui/compositor/transform_animation_curve_adapter.cc ('k') | ui/events/gesture_detection/motion_event_generic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698