Index: ui/ozone/platform/drm/host/drm_display_host_manager.cc |
diff --git a/ui/ozone/platform/drm/host/drm_display_host_manager.cc b/ui/ozone/platform/drm/host/drm_display_host_manager.cc |
index f0b86c1f06f39d9a40acc392ead2d41dd1c6ff81..c71633479e119ab3dfd489cf0e1cf12cc358e9ff 100644 |
--- a/ui/ozone/platform/drm/host/drm_display_host_manager.cc |
+++ b/ui/ozone/platform/drm/host/drm_display_host_manager.cc |
@@ -46,7 +46,7 @@ void OpenDeviceOnWorkerThread( |
scoped_ptr<DrmDeviceHandle> handle(new DrmDeviceHandle()); |
handle->Initialize(path); |
reply_runner->PostTask( |
- FROM_HERE, base::Bind(callback, path, base::Passed(handle.Pass()))); |
+ FROM_HERE, base::Bind(callback, path, base::Passed(std::move(handle)))); |
} |
base::FilePath GetPrimaryDisplayCardPath() { |
@@ -328,7 +328,7 @@ void DrmDisplayHostManager::OnChannelEstablished( |
drm_devices_.clear(); |
drm_devices_.insert(primary_graphics_card_path_); |
- scoped_ptr<DrmDeviceHandle> handle = primary_drm_device_handle_.Pass(); |
+ scoped_ptr<DrmDeviceHandle> handle = std::move(primary_drm_device_handle_); |
if (!handle) { |
base::ThreadRestrictions::ScopedAllowIO allow_io; |
handle.reset(new DrmDeviceHandle()); |