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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.cc

Issue 1553493002: Global conversion of Pass()→std::move() on OS=linux chromecast=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix fragile include order 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: ui/events/ozone/evdev/event_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
index 32dd7c5b651cbcd97c6106dadaf31cee0e98df1d..18118290d6566bc8aa22751e8b4ebcf9e6537fe1 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -4,6 +4,8 @@
#include "ui/events/ozone/evdev/event_factory_evdev.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/task_runner.h"
#include "base/thread_task_runner_handle.h"
@@ -155,7 +157,7 @@ scoped_ptr<SystemInputInjector> EventFactoryEvdev::CreateSystemInputInjector() {
new ProxyDeviceEventDispatcher(base::ThreadTaskRunnerHandle::Get(),
weak_ptr_factory_.GetWeakPtr()));
return make_scoped_ptr(
- new InputInjectorEvdev(proxy_dispatcher.Pass(), cursor_));
+ new InputInjectorEvdev(std::move(proxy_dispatcher), cursor_));
}
void EventFactoryEvdev::DispatchKeyEvent(const KeyEventParams& params) {
@@ -400,7 +402,7 @@ void EventFactoryEvdev::StartThread() {
scoped_ptr<DeviceEventDispatcherEvdev> proxy_dispatcher(
new ProxyDeviceEventDispatcher(base::ThreadTaskRunnerHandle::Get(),
weak_ptr_factory_.GetWeakPtr()));
- thread_.Start(proxy_dispatcher.Pass(), cursor_,
+ thread_.Start(std::move(proxy_dispatcher), cursor_,
base::Bind(&EventFactoryEvdev::OnThreadStarted,
weak_ptr_factory_.GetWeakPtr()));
}
@@ -408,7 +410,7 @@ void EventFactoryEvdev::StartThread() {
void EventFactoryEvdev::OnThreadStarted(
scoped_ptr<InputDeviceFactoryEvdevProxy> input_device_factory) {
TRACE_EVENT0("evdev", "EventFactoryEvdev::OnThreadStarted");
- input_device_factory_proxy_ = input_device_factory.Pass();
+ input_device_factory_proxy_ = std::move(input_device_factory);
// Hook up device configuration.
input_controller_.SetInputDeviceFactory(input_device_factory_proxy_.get());
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc ('k') | ui/events/ozone/evdev/event_thread_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698