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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_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/synthetic_gesture_controller.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture_controller.cc b/content/browser/renderer_host/input/synthetic_gesture_controller.cc
index 536426b71db2eed3f0df1476de222bc7b89d1a35..109ce3465bd16de28e3f1e9d39da08106d285ede 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_controller.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_controller.cc
@@ -4,6 +4,8 @@
#include "content/browser/renderer_host/input/synthetic_gesture_controller.h"
+#include <utility>
+
#include "base/trace_event/trace_event.h"
#include "content/browser/renderer_host/input/synthetic_gesture_target.h"
#include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
@@ -14,7 +16,7 @@ namespace content {
SyntheticGestureController::SyntheticGestureController(
scoped_ptr<SyntheticGestureTarget> gesture_target)
- : gesture_target_(gesture_target.Pass()) {}
+ : gesture_target_(std::move(gesture_target)) {}
SyntheticGestureController::~SyntheticGestureController() {}
@@ -25,7 +27,8 @@ void SyntheticGestureController::QueueSyntheticGesture(
bool was_empty = pending_gesture_queue_.IsEmpty();
- pending_gesture_queue_.Push(synthetic_gesture.Pass(), completion_callback);
+ pending_gesture_queue_.Push(std::move(synthetic_gesture),
+ completion_callback);
if (was_empty)
StartGesture(*pending_gesture_queue_.FrontGesture());
@@ -61,7 +64,7 @@ void SyntheticGestureController::OnDidFlushInput() {
return;
DCHECK(!pending_gesture_queue_.IsEmpty());
- auto pending_gesture_result = pending_gesture_result_.Pass();
+ auto pending_gesture_result = std::move(pending_gesture_result_);
StopGesture(*pending_gesture_queue_.FrontGesture(),
pending_gesture_queue_.FrontCallback(),
*pending_gesture_result);

Powered by Google App Engine
This is Rietveld 408576698