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

Unified Diff: ui/ozone/platform/x11/ozone_platform_x11.cc

Issue 2259753003: 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 | « ui/ozone/platform/wayland/wayland_surface_factory.cc ('k') | ui/touch_selection/touch_handle_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « ui/ozone/platform/wayland/wayland_surface_factory.cc ('k') | ui/touch_selection/touch_handle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698