Index: ui/ozone/platform/drm/gpu/drm_device.cc |
diff --git a/ui/ozone/platform/drm/gpu/drm_device.cc b/ui/ozone/platform/drm/gpu/drm_device.cc |
index 9a16a95e2ef0eea17096fbfbd38ae8ea70586605..bc528672d554cc3d8ac6a2fa296ef18b39833639 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_device.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_device.cc |
@@ -215,7 +215,7 @@ DrmDevice::DrmDevice(const base::FilePath& device_path, |
base::File file, |
bool is_primary_device) |
: device_path_(device_path), |
- file_(file.Pass()), |
+ file_(std::move(file)), |
page_flip_manager_(new PageFlipManager()), |
is_primary_device_(is_primary_device) {} |
@@ -370,7 +370,7 @@ ScopedDrmPropertyPtr DrmDevice::GetProperty(drmModeConnector* connector, |
continue; |
if (strcmp(property->name, name) == 0) |
- return property.Pass(); |
+ return property; |
} |
return ScopedDrmPropertyPtr(); |