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

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: add #include <utility> 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
« no previous file with comments | « ui/ozone/platform/caca/ozone_platform_caca.cc ('k') | ui/ozone/platform/cast/surface_factory_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a0e282c6fa3254b11213c48cf71ac589f43612ab 100644
--- a/ui/ozone/platform/cast/ozone_platform_cast.cc
+++ b/ui/ozone/platform/cast/ozone_platform_cast.cc
@@ -4,6 +4,8 @@
#include "ui/ozone/platform/cast/ozone_platform_cast.h"
+#include <utility>
+
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "chromecast/public/cast_egl_platform.h"
@@ -37,7 +39,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 +89,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 +112,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
« no previous file with comments | « ui/ozone/platform/caca/ozone_platform_caca.cc ('k') | ui/ozone/platform/cast/surface_factory_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698