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

Unified Diff: services/ui/ws/platform_display.cc

Issue 2365753003: mus ws: Move 'reset(new' to base::MakeUnique. (Closed)
Patch Set: Merge with tot Created 4 years, 3 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 | « services/ui/ws/gpu_service_proxy.cc ('k') | services/ui/ws/scheduled_animation_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.cc
diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
index 31502f8ef1ffb8453a2bbdee48e36486ba0fab59..a039209fd6cef090908e1e317ffe8470e8181655 100644
--- a/services/ui/ws/platform_display.cc
+++ b/services/ui/ws/platform_display.cc
@@ -72,11 +72,11 @@ void DefaultPlatformDisplay::Init(PlatformDisplayDelegate* delegate) {
// scale_factor other than 1.0 but will prevent windows from being stacked.
gfx::Rect bounds(metrics_.bounds.origin(), metrics_.pixel_size);
#if defined(OS_WIN)
- platform_window_.reset(new ui::WinWindow(this, bounds));
+ platform_window_ = base::MakeUnique<ui::WinWindow>(this, bounds);
#elif defined(USE_X11)
- platform_window_.reset(new ui::X11Window(this));
+ platform_window_ = base::MakeUnique<ui::X11Window>(this);
#elif defined(OS_ANDROID)
- platform_window_.reset(new ui::PlatformWindowAndroid(this));
+ platform_window_ = base::MakeUnique<ui::PlatformWindowAndroid>(this);
#elif defined(USE_OZONE)
platform_window_ =
ui::OzonePlatform::GetInstance()->CreatePlatformWindow(this, bounds);
« no previous file with comments | « services/ui/ws/gpu_service_proxy.cc ('k') | services/ui/ws/scheduled_animation_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698