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

Unified Diff: ui/events/ozone/evdev/event_converter_test_util.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/udev/device_manager_udev.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_converter_test_util.cc
diff --git a/ui/events/ozone/evdev/event_converter_test_util.cc b/ui/events/ozone/evdev/event_converter_test_util.cc
index f648baaa1a7def1f75a17162be52b02395a4268d..57140b2e61ad046ae4d330343b1ca8e9da031ce2 100644
--- a/ui/events/ozone/evdev/event_converter_test_util.cc
+++ b/ui/events/ozone/evdev/event_converter_test_util.cc
@@ -110,11 +110,11 @@ class TestEventFactoryEvdev : public EventFactoryEvdev {
std::unique_ptr<DeviceEventDispatcherEvdev>
CreateDeviceEventDispatcherEvdevForTest(EventFactoryEvdev* event_factory) {
- return base::WrapUnique(new TestDeviceEventDispatcherEvdev(event_factory));
+ return base::MakeUnique<TestDeviceEventDispatcherEvdev>(event_factory);
}
std::unique_ptr<DeviceManager> CreateDeviceManagerForTest() {
- return base::WrapUnique(new TestDeviceManager());
+ return base::MakeUnique<TestDeviceManager>();
}
std::unique_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest(
@@ -122,8 +122,8 @@ std::unique_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest(
DeviceManager* device_manager,
KeyboardLayoutEngine* keyboard_layout_engine,
const EventDispatchCallback& callback) {
- return base::WrapUnique(new TestEventFactoryEvdev(
- cursor, device_manager, keyboard_layout_engine, callback));
+ return base::MakeUnique<TestEventFactoryEvdev>(
+ cursor, device_manager, keyboard_layout_engine, callback);
}
} // namespace ui
« no previous file with comments | « ui/events/ozone/device/udev/device_manager_udev.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698