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

Unified Diff: ui/ozone/platform/cast/ozone_platform_cast.cc

Issue 1528373002: Replace Pass() with std::move in ui/ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 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

Powered by Google App Engine
This is Rietveld 408576698