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

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

Issue 2259753003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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/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 5bf30b7029c81e9bb4bcefc8f9fbfcf06661d60e..95f3867bc1d19a769da09e576096e9018d42d1e3 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev.cc
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.cc
@@ -93,11 +93,11 @@ std::unique_ptr<EventConverterEvdev> CreateConverter(
// EventReaderLibevdevCros -> GestureInterpreterLibevdevCros -> DispatchEvent
if (devinfo.HasTouchpad() || devinfo.HasMouse()) {
std::unique_ptr<GestureInterpreterLibevdevCros> gesture_interp =
- base::WrapUnique(new GestureInterpreterLibevdevCros(
+ base::MakeUnique<GestureInterpreterLibevdevCros>(
params.id, params.cursor, params.gesture_property_provider,
- params.dispatcher));
- return base::WrapUnique(new EventReaderLibevdevCros(
- fd, params.path, params.id, devinfo, std::move(gesture_interp)));
+ params.dispatcher);
+ return base::MakeUnique<EventReaderLibevdevCros>(
+ fd, params.path, params.id, devinfo, std::move(gesture_interp));
}
#endif
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698