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

Unified Diff: ui/events/ozone/evdev/event_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/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 b58cb827ca298a39b53ae9505a9a057b4e90d811..625fae6a94c8a9eb484f2c073c4a3e6f895608db 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -158,8 +158,8 @@ EventFactoryEvdev::CreateSystemInputInjector() {
std::unique_ptr<DeviceEventDispatcherEvdev> proxy_dispatcher(
new ProxyDeviceEventDispatcher(base::ThreadTaskRunnerHandle::Get(),
weak_ptr_factory_.GetWeakPtr()));
- return base::WrapUnique(
- new InputInjectorEvdev(std::move(proxy_dispatcher), cursor_));
+ return base::MakeUnique<InputInjectorEvdev>(std::move(proxy_dispatcher),
+ cursor_);
}
void EventFactoryEvdev::DispatchKeyEvent(const KeyEventParams& params) {
« no previous file with comments | « ui/events/ozone/evdev/event_converter_test_util.cc ('k') | ui/events/ozone/evdev/input_device_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698