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

Unified Diff: ui/events/ozone/evdev/input_device_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
« no previous file with comments | « ui/events/ozone/evdev/event_thread_evdev.cc ('k') | ui/events/ozone/evdev/input_injector_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/input_device_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev.cc b/ui/events/ozone/evdev/input_device_factory_evdev.cc
index 0ab72a7fb0b76086f571ae161c69a3bf13483295..728d7e898f2d60342c5db4b1a00a43d1f73ad28d 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev.cc
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.cc
@@ -7,6 +7,7 @@
#include <fcntl.h>
#include <linux/input.h>
#include <stddef.h>
+#include <utility>
#include "base/stl_util.h"
#include "base/thread_task_runner_handle.h"
@@ -103,7 +104,7 @@ scoped_ptr<EventConverterEvdev> CreateConverter(
scoped_ptr<TouchEventConverterEvdev> converter(new TouchEventConverterEvdev(
fd, params.path, params.id, devinfo, params.dispatcher));
converter->Initialize(devinfo);
- return converter.Pass();
+ return std::move(converter);
}
// Graphics tablet
@@ -180,7 +181,7 @@ InputDeviceFactoryEvdev::InputDeviceFactoryEvdev(
#if defined(USE_EVDEV_GESTURES)
gesture_property_provider_(new GesturePropertyProvider),
#endif
- dispatcher_(dispatcher.Pass()),
+ dispatcher_(std::move(dispatcher)),
weak_ptr_factory_(this) {
}
@@ -292,7 +293,7 @@ void InputDeviceFactoryEvdev::GetTouchDeviceStatus(
#if defined(USE_EVDEV_GESTURES)
DumpTouchDeviceStatus(gesture_property_provider_.get(), status.get());
#endif
- reply.Run(status.Pass());
+ reply.Run(std::move(status));
}
void InputDeviceFactoryEvdev::GetTouchEventLog(
@@ -304,7 +305,7 @@ void InputDeviceFactoryEvdev::GetTouchEventLog(
DumpTouchEventLog(converters_, gesture_property_provider_.get(), out_dir,
log_paths.Pass(), reply);
#else
- reply.Run(log_paths.Pass());
+ reply.Run(std::move(log_paths));
#endif
}
« no previous file with comments | « ui/events/ozone/evdev/event_thread_evdev.cc ('k') | ui/events/ozone/evdev/input_injector_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698