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

Unified Diff: ash/display/extended_mouse_warp_controller.cc

Issue 2257763002: 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 | « ash/display/display_manager.cc ('k') | ash/host/ash_window_tree_host_unified.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/extended_mouse_warp_controller.cc
diff --git a/ash/display/extended_mouse_warp_controller.cc b/ash/display/extended_mouse_warp_controller.cc
index 2cd4b174355030fc835f1aacb58e541d3c032eca..ce5609c08ab40bc902c25fd862d6c26a369132fe 100644
--- a/ash/display/extended_mouse_warp_controller.cc
+++ b/ash/display/extended_mouse_warp_controller.cc
@@ -220,7 +220,7 @@ ExtendedMouseWarpController::CreateWarpRegion(const display::Display& a,
AdjustSourceEdgeBounds(b.bounds(), snap_barrier, &b_edge);
}
- return base::WrapUnique(new WarpRegion(a.id(), b.id(), a_edge, b_edge));
+ return base::MakeUnique<WarpRegion>(a.id(), b.id(), a_edge, b_edge);
}
} // namespace ash
« no previous file with comments | « ash/display/display_manager.cc ('k') | ash/host/ash_window_tree_host_unified.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698