| Index: ui/ozone/platform/x11/ozone_platform_x11.cc
|
| diff --git a/ui/ozone/platform/x11/ozone_platform_x11.cc b/ui/ozone/platform/x11/ozone_platform_x11.cc
|
| index 7dd031790685362391e861e7e8053fb56da803a3..e594afb7fda2febfde7cef07abdbf0da65d1d95c 100644
|
| --- a/ui/ozone/platform/x11/ozone_platform_x11.cc
|
| +++ b/ui/ozone/platform/x11/ozone_platform_x11.cc
|
| @@ -81,9 +81,8 @@ class OzonePlatformX11 : public OzonePlatform {
|
| std::unique_ptr<PlatformWindow> CreatePlatformWindow(
|
| PlatformWindowDelegate* delegate,
|
| const gfx::Rect& bounds) override {
|
| - std::unique_ptr<X11WindowOzone> window =
|
| - base::WrapUnique(new X11WindowOzone(event_source_.get(),
|
| - window_manager_.get(), delegate));
|
| + std::unique_ptr<X11WindowOzone> window = base::MakeUnique<X11WindowOzone>(
|
| + event_source_.get(), window_manager_.get(), delegate);
|
| window->SetBounds(bounds);
|
| window->Create();
|
| window->SetTitle(base::ASCIIToUTF16("Ozone X11"));
|
| @@ -92,7 +91,7 @@ class OzonePlatformX11 : public OzonePlatform {
|
|
|
| std::unique_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
|
| override {
|
| - return base::WrapUnique(new NativeDisplayDelegateOzoneX11());
|
| + return base::MakeUnique<NativeDisplayDelegateOzoneX11>();
|
| }
|
|
|
| void InitializeUI() override {
|
|
|