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

Unified Diff: ash/aura/wm_window_aura.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/app_list/app_list_presenter_delegate_factory.cc ('k') | ash/common/shelf/shelf_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index a46b56f50adc35e58407d139afa7ee42ab5f1221..92675f799ea684a3c87a1e17ffd1b01fc00899af 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -683,8 +683,8 @@ void WmWindowAura::SetChildrenUseExtendedHitRegion() {
-kResizeOutsideBoundsSize);
gfx::Insets touch_extend =
mouse_extend.Scale(kResizeOutsideBoundsScaleForTouch);
- window_->SetEventTargeter(base::WrapUnique(
- new ::wm::EasyResizeWindowTargeter(window_, mouse_extend, touch_extend)));
+ window_->SetEventTargeter(base::MakeUnique<::wm::EasyResizeWindowTargeter>(
+ window_, mouse_extend, touch_extend));
}
void WmWindowAura::SetDescendantsStayInSameRootWindow(bool value) {
@@ -692,7 +692,7 @@ void WmWindowAura::SetDescendantsStayInSameRootWindow(bool value) {
}
std::unique_ptr<views::View> WmWindowAura::CreateViewWithRecreatedLayers() {
- return base::WrapUnique(new wm::WindowMirrorView(this));
+ return base::MakeUnique<wm::WindowMirrorView>(this);
}
void WmWindowAura::AddObserver(WmWindowObserver* observer) {
« no previous file with comments | « ash/app_list/app_list_presenter_delegate_factory.cc ('k') | ash/common/shelf/shelf_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698