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

Unified Diff: ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.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/layout/xkb/xkb_keyboard_layout_engine_unittest.cc
diff --git a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc
index e32a2d41f1bf37fda2baa65112310785222c37cf..16b55d8d5abe979bd21a333358191acab3c29d75 100644
--- a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc
+++ b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc
@@ -151,8 +151,8 @@ class XkbLayoutEngineVkTest : public testing::Test {
~XkbLayoutEngineVkTest() override {}
void SetUp() override {
- KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(base::WrapUnique(
- new VkTestXkbKeyboardLayoutEngine(keycode_converter_)));
+ KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(
+ base::MakeUnique<VkTestXkbKeyboardLayoutEngine>(keycode_converter_));
layout_engine_ = static_cast<VkTestXkbKeyboardLayoutEngine*>(
KeyboardLayoutEngineManager::GetKeyboardLayoutEngine());
}
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc ('k') | ui/events/platform/platform_event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698