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

Unified Diff: ui/ozone/platform/drm/gpu/drm_device_generator.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/drm/gpu/drm_device.cc ('k') | ui/ozone/platform/drm/gpu/drm_device_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_device_generator.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_device_generator.cc b/ui/ozone/platform/drm/gpu/drm_device_generator.cc
index d1bde616a2539a54e165085ac0facccf1d1715da..ec26f8760813754358ea3d4af62d8c77b5cc8580 100644
--- a/ui/ozone/platform/drm/gpu/drm_device_generator.cc
+++ b/ui/ozone/platform/drm/gpu/drm_device_generator.cc
@@ -4,6 +4,8 @@
#include "ui/ozone/platform/drm/gpu/drm_device_generator.h"
+#include <utility>
+
#include "ui/ozone/platform/drm/gpu/drm_device.h"
namespace ui {
@@ -19,7 +21,7 @@ scoped_refptr<DrmDevice> DrmDeviceGenerator::CreateDevice(
base::File file,
bool is_primary_device) {
scoped_refptr<DrmDevice> drm =
- new DrmDevice(device_path, file.Pass(), is_primary_device);
+ new DrmDevice(device_path, std::move(file), is_primary_device);
if (drm->Initialize(false))
return drm;
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_device.cc ('k') | ui/ozone/platform/drm/gpu/drm_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698