Index: ui/ozone/platform/drm/gpu/drm_thread.cc |
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc |
index 901dedb08c7c0aa19398ed49293842dd7a6f6703..bf5ef4d238aa6f5d517befcf5c5a792cad70501f 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc |
@@ -51,7 +51,7 @@ class GbmDeviceGenerator : public DrmDeviceGenerator { |
base::File file, |
bool is_primary_device) override { |
scoped_refptr<DrmDevice> drm = |
- new GbmDevice(path, file.Pass(), is_primary_device); |
+ new GbmDevice(path, std::move(file), is_primary_device); |
if (drm->Initialize(use_atomic_)) |
return drm; |
@@ -128,7 +128,7 @@ void DrmThread::CreateWindow(gfx::AcceleratedWidget widget) { |
scoped_ptr<DrmWindow> window( |
new DrmWindow(widget, device_manager_.get(), screen_manager_.get())); |
window->Initialize(); |
- screen_manager_->AddWindow(widget, window.Pass()); |
+ screen_manager_->AddWindow(widget, std::move(window)); |
} |
void DrmThread::DestroyWindow(gfx::AcceleratedWidget widget) { |