| 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 e217d86b5c16de648782860164331ca42ffc86ca..cb12410ef976134f4d57cc11c310f1f727a77de0 100644
|
| --- a/ui/events/gesture_detection/motion_event_buffer.cc
|
| +++ b/ui/events/gesture_detection/motion_event_buffer.cc
|
| @@ -261,7 +261,7 @@ void MotionEventBuffer::OnMotionEvent(const MotionEvent& event) {
|
|
|
| scoped_ptr<MotionEventGeneric> clone = MotionEventGeneric::CloneEvent(event);
|
| if (buffered_events_.empty()) {
|
| - buffered_events_.push_back(clone.release());
|
| + buffered_events_.push_back(clone.Pass());
|
| client_->SetNeedsFlush();
|
| return;
|
| }
|
| @@ -272,7 +272,7 @@ void MotionEventBuffer::OnMotionEvent(const MotionEvent& event) {
|
| FlushWithoutResampling(buffered_events_.Pass());
|
| }
|
|
|
| - buffered_events_.push_back(clone.release());
|
| + buffered_events_.push_back(clone.Pass());
|
| // No need to request another flush as the first event will have requested it.
|
| }
|
|
|
|
|