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

Unified Diff: ui/ozone/platform/cast/ozone_platform_cast.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
Index: ui/ozone/platform/cast/ozone_platform_cast.cc
diff --git a/ui/ozone/platform/cast/ozone_platform_cast.cc b/ui/ozone/platform/cast/ozone_platform_cast.cc
index f0e1e95c585ec8d7f9d66d18d84504dc155dfd1f..d41708da534c745336e0a8d53a084cad916e36cb 100644
--- a/ui/ozone/platform/cast/ozone_platform_cast.cc
+++ b/ui/ozone/platform/cast/ozone_platform_cast.cc
@@ -75,7 +75,7 @@ class OzonePlatformCast : public OzonePlatform {
}
std::unique_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
override {
- return base::WrapUnique(new NativeDisplayDelegateOzone());
+ return base::MakeUnique<NativeDisplayDelegateOzone>();
}
void InitializeUI() override {
@@ -99,7 +99,7 @@ class OzonePlatformCast : public OzonePlatform {
void InitializeGPU() override {
surface_factory_.reset(new SurfaceFactoryCast(std::move(egl_platform_)));
g_gpu_platform_support.Get() =
- base::WrapUnique(new GpuPlatformSupportCast(surface_factory_.get()));
+ base::MakeUnique<GpuPlatformSupportCast>(surface_factory_.get());
}
private:
« no previous file with comments | « ui/ozone/platform/cast/overlay_manager_cast.cc ('k') | ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698