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 ec9f8a1fc94e1bd1f19430d26db857dfe71a10bd..3f03e1c30fecde3d0731d0d53707c99c5ec1332c 100644 |
--- a/ui/ozone/platform/cast/ozone_platform_cast.cc |
+++ b/ui/ozone/platform/cast/ozone_platform_cast.cc |
@@ -37,7 +37,7 @@ base::LazyInstance<scoped_ptr<GpuPlatformSupport>> g_gpu_platform_support = |
class OzonePlatformCast : public OzonePlatform { |
public: |
explicit OzonePlatformCast(scoped_ptr<CastEglPlatform> egl_platform) |
- : egl_platform_(egl_platform.Pass()) {} |
+ : egl_platform_(std::move(egl_platform)) {} |
~OzonePlatformCast() override {} |
// OzonePlatform implementation: |
@@ -87,7 +87,7 @@ class OzonePlatformCast : public OzonePlatform { |
surface_factory_.reset(new SurfaceFactoryCast()); |
} |
void InitializeGPU() override { |
- surface_factory_.reset(new SurfaceFactoryCast(egl_platform_.Pass())); |
+ surface_factory_.reset(new SurfaceFactoryCast(std::move(egl_platform_))); |
g_gpu_platform_support.Get() = |
make_scoped_ptr(new GpuPlatformSupportCast(surface_factory_.get())); |
} |
@@ -110,7 +110,7 @@ OzonePlatform* CreateOzonePlatformCast() { |
base::CommandLine::ForCurrentProcess()->argv(); |
scoped_ptr<chromecast::CastEglPlatform> platform( |
chromecast::CastEglPlatformShlib::Create(argv)); |
- return new OzonePlatformCast(platform.Pass()); |
+ return new OzonePlatformCast(std::move(platform)); |
} |
} // namespace ui |