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

Unified Diff: ui/ozone/platform/cast/surface_factory_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
Index: ui/ozone/platform/cast/surface_factory_cast.cc
diff --git a/ui/ozone/platform/cast/surface_factory_cast.cc b/ui/ozone/platform/cast/surface_factory_cast.cc
index f92e1c9aac5fc9e2f61881e109ebf2ab6d6c6b51..01ae9f7cbae709c051127ffed246b32b077df6e0 100644
--- a/ui/ozone/platform/cast/surface_factory_cast.cc
+++ b/ui/ozone/platform/cast/surface_factory_cast.cc
@@ -6,6 +6,7 @@
#include <dlfcn.h>
#include <EGL/egl.h>
+#include <utility>
#include "base/callback_helpers.h"
#include "chromecast/public/cast_egl_platform.h"
@@ -76,8 +77,7 @@ SurfaceFactoryCast::SurfaceFactoryCast(scoped_ptr<CastEglPlatform> egl_platform)
window_(0),
display_size_(GetInitialDisplaySize()),
new_display_size_(GetInitialDisplaySize()),
- egl_platform_(egl_platform.Pass()) {
-}
+ egl_platform_(std::move(egl_platform)) {}
SurfaceFactoryCast::~SurfaceFactoryCast() {
ShutdownHardware();
« no previous file with comments | « ui/ozone/platform/cast/ozone_platform_cast.cc ('k') | ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698