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

Unified Diff: content/browser/renderer_host/input/touch_event_queue.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: content/browser/renderer_host/input/touch_event_queue.cc
diff --git a/content/browser/renderer_host/input/touch_event_queue.cc b/content/browser/renderer_host/input/touch_event_queue.cc
index 9397cf781d9247d3dd65761ab84f50e1084483b5..550b46bfc4795657b0ded5772f9084f4f7428580 100644
--- a/content/browser/renderer_host/input/touch_event_queue.cc
+++ b/content/browser/renderer_host/input/touch_event_queue.cc
@@ -4,6 +4,8 @@
#include "content/browser/renderer_host/input/touch_event_queue.h"
+#include <utility>
+
#include "base/auto_reset.h"
#include "base/macros.h"
#include "base/metrics/histogram_macros.h"
@@ -619,7 +621,8 @@ void TouchEventQueue::ForwardNextEventToRenderer() {
void TouchEventQueue::FlushPendingAsyncTouchmove() {
DCHECK(!dispatching_touch_);
- scoped_ptr<TouchEventWithLatencyInfo> touch = pending_async_touchmove_.Pass();
+ scoped_ptr<TouchEventWithLatencyInfo> touch =
+ std::move(pending_async_touchmove_);
touch->event.cancelable = false;
touch_queue_.push_front(new CoalescedWebTouchEvent(*touch, true));
SendTouchEventImmediately(touch.get());
@@ -741,7 +744,7 @@ scoped_ptr<CoalescedWebTouchEvent> TouchEventQueue::PopTouchEvent() {
DCHECK(!touch_queue_.empty());
scoped_ptr<CoalescedWebTouchEvent> event(touch_queue_.front());
touch_queue_.pop_front();
- return event.Pass();
+ return event;
}
void TouchEventQueue::SendTouchEventImmediately(

Powered by Google App Engine
This is Rietveld 408576698