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

Unified Diff: ui/events/gestures/gesture_provider_aura.cc

Issue 1539583003: Convert Pass()→std::move() in ui/ (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
« no previous file with comments | « ui/events/gestures/blink/web_gesture_curve_impl.cc ('k') | ui/events/latency_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/gesture_provider_aura.cc
diff --git a/ui/events/gestures/gesture_provider_aura.cc b/ui/events/gestures/gesture_provider_aura.cc
index 4d9e6fc1176ae3e828f03b21b2b5334224076693..08fa5ca643109c8788679596ed7cd685a3335fd1 100644
--- a/ui/events/gestures/gesture_provider_aura.cc
+++ b/ui/events/gestures/gesture_provider_aura.cc
@@ -4,6 +4,8 @@
#include "ui/events/gestures/gesture_provider_aura.h"
+#include <utility>
+
#include "base/auto_reset.h"
#include "base/logging.h"
#include "ui/events/event.h"
@@ -61,7 +63,7 @@ void GestureProviderAura::OnGestureEvent(
client_->OnGestureEvent(event.get());
} else {
// Memory managed by ScopedVector pending_gestures_.
- pending_gestures_.push_back(event.Pass());
+ pending_gestures_.push_back(std::move(event));
}
}
« no previous file with comments | « ui/events/gestures/blink/web_gesture_curve_impl.cc ('k') | ui/events/latency_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698