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

Unified Diff: content/browser/renderer_host/input/touchscreen_tap_suppression_controller.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/touchscreen_tap_suppression_controller.cc
diff --git a/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.cc b/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.cc
index 872cfb05b6b914c66e95362dec9aa8d593e8c420..791422d38de3d0c286c626c9d1ce758640f8400e 100644
--- a/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.cc
+++ b/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.cc
@@ -4,6 +4,8 @@
#include "content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h"
+#include <utility>
+
#include "content/browser/renderer_host/input/gesture_event_queue.h"
using blink::WebInputEvent;
@@ -63,8 +65,8 @@ void TouchscreenTapSuppressionController::DropStashedTapDown() {
void TouchscreenTapSuppressionController::ForwardStashedTapDown() {
DCHECK(stashed_tap_down_);
- ScopedGestureEvent tap_down = stashed_tap_down_.Pass();
- ScopedGestureEvent show_press = stashed_show_press_.Pass();
+ ScopedGestureEvent tap_down = std::move(stashed_tap_down_);
+ ScopedGestureEvent show_press = std::move(stashed_show_press_);
gesture_event_queue_->ForwardGestureEvent(*tap_down);
if (show_press)
gesture_event_queue_->ForwardGestureEvent(*show_press);

Powered by Google App Engine
This is Rietveld 408576698