Index: ui/ozone/platform/drm/gpu/drm_device_manager.cc |
diff --git a/ui/ozone/platform/drm/gpu/drm_device_manager.cc b/ui/ozone/platform/drm/gpu/drm_device_manager.cc |
index c366f65320b1d22a2c037c5da4c7af0289b98cfa..87a24aa5c9ff01dd9a70ae6ad01359375941879b 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_device_manager.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_device_manager.cc |
@@ -29,8 +29,7 @@ class FindByDevicePath { |
DrmDeviceManager::DrmDeviceManager( |
scoped_ptr<DrmDeviceGenerator> drm_device_generator) |
- : drm_device_generator_(drm_device_generator.Pass()) { |
-} |
+ : drm_device_generator_(std::move(drm_device_generator)) {} |
DrmDeviceManager::~DrmDeviceManager() { |
DCHECK(drm_device_map_.empty()); |
@@ -46,8 +45,8 @@ bool DrmDeviceManager::AddDrmDevice(const base::FilePath& path, |
return false; |
} |
- scoped_refptr<DrmDevice> device = |
- drm_device_generator_->CreateDevice(path, file.Pass(), !primary_device_); |
+ scoped_refptr<DrmDevice> device = drm_device_generator_->CreateDevice( |
+ path, std::move(file), !primary_device_); |
if (!device) { |
LOG(ERROR) << "Could not initialize DRM device for " << path.value(); |
return false; |