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

Unified Diff: ui/events/ozone/device/udev/device_manager_udev.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
« no previous file with comments | « ui/events/ozone/device/device_manager.cc ('k') | ui/events/ozone/evdev/event_converter_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/device/udev/device_manager_udev.cc
diff --git a/ui/events/ozone/device/udev/device_manager_udev.cc b/ui/events/ozone/device/udev/device_manager_udev.cc
index 0f21e8f4502a02f7d8350bd61194fbddd74dcb97..b152a9bc1c3b70135c4d489ef3ccd17e9363b226 100644
--- a/ui/events/ozone/device/udev/device_manager_udev.cc
+++ b/ui/events/ozone/device/udev/device_manager_udev.cc
@@ -186,8 +186,8 @@ std::unique_ptr<DeviceEvent> DeviceManagerUdev::ProcessMessage(
else
return nullptr;
- return base::WrapUnique(
- new DeviceEvent(device_type, action_type, base::FilePath(path)));
+ return base::MakeUnique<DeviceEvent>(device_type, action_type,
+ base::FilePath(path));
}
} // namespace ui
« no previous file with comments | « ui/events/ozone/device/device_manager.cc ('k') | ui/events/ozone/evdev/event_converter_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698