Index: ash/wm/lock_state_controller_unittest.cc |
diff --git a/ash/wm/lock_state_controller_unittest.cc b/ash/wm/lock_state_controller_unittest.cc |
index 2ab2532bd4e918b211997af34a3f2a2043c907d3..014dcda8be9067fa96c968345c7c666c775419db 100644 |
--- a/ash/wm/lock_state_controller_unittest.cc |
+++ b/ash/wm/lock_state_controller_unittest.cc |
@@ -888,7 +888,7 @@ TEST_F(LockStateControllerTest, IgnorePowerButtonIfScreenIsOff) { |
TEST_F(LockStateControllerTest, HonorPowerButtonInDockedMode) { |
std::vector<std::unique_ptr<const ui::DisplayMode>> modes; |
modes.push_back( |
- base::WrapUnique(new ui::DisplayMode(gfx::Size(1, 1), false, 60.0f))); |
+ base::MakeUnique<ui::DisplayMode>(gfx::Size(1, 1), false, 60.0f)); |
// Create two outputs, the first internal and the second external. |
ui::DisplayConfigurator::DisplayStateList outputs; |
@@ -899,7 +899,7 @@ TEST_F(LockStateControllerTest, HonorPowerButtonInDockedMode) { |
modes.clear(); |
modes.push_back( |
- base::WrapUnique(new ui::DisplayMode(gfx::Size(1, 1), false, 60.0f))); |
+ base::MakeUnique<ui::DisplayMode>(gfx::Size(1, 1), false, 60.0f)); |
ui::TestDisplaySnapshot external_display; |
external_display.set_type(ui::DISPLAY_CONNECTION_TYPE_HDMI); |
external_display.set_modes(std::move(modes)); |